diff --git a/src/Plugin/Block/SuperfishBlock.php b/src/Plugin/Block/SuperfishBlock.php
index 47cbbf1..18a0a98 100644
--- a/src/Plugin/Block/SuperfishBlock.php
+++ b/src/Plugin/Block/SuperfishBlock.php
@@ -40,7 +40,7 @@ class SuperfishBlock extends SystemMenuBlock {
       '#options' => array(
         'horizontal' => $this->t('Horizontal (single row)'),
         'navbar' => $this->t('Horizontal (double row)'),
-        'vertical' => $this->t('Vertical (stack)')
+        'vertical' => $this->t('Vertical (stack)'),
       ),
     );
     $form['sf']['superfish_style'] = array(
@@ -54,8 +54,8 @@ class SuperfishBlock extends SystemMenuBlock {
         'black' => $this->t('Black'),
         'blue' => $this->t('Blue'),
         'coffee' => $this->t('Coffee'),
-        'white' => $this->t('White')
-      )
+        'white' => $this->t('White'),
+      ),
     );
     $form['sf']['superfish_arrow'] = array(
       '#type' => 'checkbox',
@@ -219,7 +219,7 @@ class SuperfishBlock extends SystemMenuBlock {
       '#default_value' => $this->configuration['smalluam'],
       '#options' => array(
         0 => $this->t('Client-side (JavaScript)'),
-        1 => $this->t('Server-side (PHP)')
+        1 => $this->t('Server-side (PHP)'),
       ),
     );
     $form['sf-plugins']['sf-smallscreen']['superfish_smallact'] = array(
@@ -269,7 +269,7 @@ class SuperfishBlock extends SystemMenuBlock {
       '#maxlength' => 1000,
       '#states' => array(
         'enabled' => array(
-         ':input[name="superfish_smallcmc' . '"]' => array('checked' => TRUE),
+          ':input[name="superfish_smallcmc"]' => array('checked' => TRUE),
         ),
       ),
     );
@@ -287,7 +287,7 @@ class SuperfishBlock extends SystemMenuBlock {
       '#maxlength' => 1000,
       '#states' => array(
         'enabled' => array(
-         ':input[name="superfish_smallchc' . '"]' => array('checked' => TRUE),
+          ':input[name="superfish_smallchc"]' => array('checked' => TRUE),
         ),
       ),
     );
@@ -307,7 +307,7 @@ class SuperfishBlock extends SystemMenuBlock {
       '#size' => 100,
       '#maxlength' => 1000,
     );
-  $form['sf-plugins']['sf-smallscreen']['sf-smallscreen-accordion'] = array(
+    $form['sf-plugins']['sf-smallscreen']['sf-smallscreen-accordion'] = array(
       '#type' => 'details',
       '#title' => $this->t('Accordion settings'),
       '#open' => TRUE,
@@ -370,14 +370,14 @@ class SuperfishBlock extends SystemMenuBlock {
       '#title' => $this->t('Start from depth'),
       '#description' => $this->t('The depth of the first instance of multi-column sub-menus.') . ' <em>(' . $this->t('Default') . ': 1)</em>',
       '#default_value' => $this->configuration['multicolumn_depth'],
-      '#options' => array_combine(range(1, 10),range(1, 10)),
+      '#options' => array_combine(range(1, 10), range(1, 10)),
     );
     $form['sf-multicolumn']['superfish_multicolumn_levels'] = array(
       '#type' => 'select',
       '#title' => $this->t('Levels'),
       '#description' => $this->t('The amount of sub-menu levels that will be included in the multi-column sub-menu.') . ' <em>(' . $this->t('Default') . ': 1)</em>',
       '#default_value' => $this->configuration['multicolumn_levels'],
-      '#options' => array_combine(range(1, 10),range(1, 10)),
+      '#options' => array_combine(range(1, 10), range(1, 10)),
     );
     $form['sf-advanced'] = array(
       '#type' => 'details',
@@ -408,7 +408,7 @@ class SuperfishBlock extends SystemMenuBlock {
       '#title' => $this->t('Path levels'),
       '#description' => $this->t('The amount of sub-menu levels that remain open or are restored using the ".active-trail" class.') . ' <em>(' . $this->t('Default') . ': 1)</em><br />' . $this->t('Change this setting <strong>only and only</strong> if you are <strong>totally sure</strong> of what you are doing.'),
       '#default_value' => $this->configuration['pathlevels'],
-      '#options' => array_combine(range(0, 10),range(0, 10)),
+      '#options' => array_combine(range(0, 10), range(0, 10)),
     );
     $form['sf-advanced']['sf-hyperlinks'] = array(
       '#type' => 'details',
@@ -551,49 +551,302 @@ class SuperfishBlock extends SystemMenuBlock {
     $this->configuration['supposition'] = $form_state->getValue(array('sf-plugins', 'superfish_supposition'));
     $this->configuration['hoverintent'] = $form_state->getValue(array('sf-plugins', 'superfish_hoverintent'));
 
-    $this->configuration['touch'] = $form_state->getValue(array('sf-plugins', 'sf-touchscreen', 'superfish_touch'));
-    $this->configuration['touchbh'] = $form_state->getValue(array('sf-plugins', 'sf-touchscreen', 'superfish_touchbh'));
-    $this->configuration['touchbp'] = $form_state->getValue(array('sf-plugins', 'sf-touchscreen', 'sf-touchscreen-windowwidth', 'superfish_touchbp'));
-    $this->configuration['touchua'] = $form_state->getValue(array('sf-plugins', 'sf-touchscreen', 'sf-touchscreen-useragent', 'superfish_touchua'));
-    $this->configuration['touchual'] = $form_state->getValue(array('sf-plugins', 'sf-touchscreen', 'sf-touchscreen-useragent', 'superfish_touchual'));
-    $this->configuration['touchuam'] = $form_state->getValue(array('sf-plugins', 'sf-touchscreen', 'sf-touchscreen-useragent', 'superfish_touchuam'));
-
-    $this->configuration['small'] = $form_state->getValue(array('sf-plugins', 'sf-smallscreen', 'superfish_small'));
-    $this->configuration['smallact'] = $form_state->getValue(array('sf-plugins', 'sf-smallscreen', 'superfish_smallact'));
-    $this->configuration['smallbp'] = $form_state->getValue(array('sf-plugins', 'sf-smallscreen', 'sf-smallscreen-windowwidth', 'superfish_smallbp'));
-    $this->configuration['smallua'] = $form_state->getValue(array('sf-plugins', 'sf-smallscreen', 'sf-smallscreen-useragent', 'superfish_smallua'));
-    $this->configuration['smallual'] = $form_state->getValue(array('sf-plugins', 'sf-smallscreen', 'sf-smallscreen-useragent', 'superfish_smallual'));
-    $this->configuration['smalluam'] = $form_state->getValue(array('sf-plugins', 'sf-smallscreen', 'sf-smallscreen-useragent', 'superfish_smalluam'));
-    $this->configuration['smallset'] = $form_state->getValue(array('sf-plugins', 'sf-smallscreen', 'sf-smallscreen-select', 'superfish_smallset'));
-    $this->configuration['smallasa'] = $form_state->getValue(array('sf-plugins', 'sf-smallscreen', 'sf-smallscreen-select', 'superfish_smallasa'));
-    $this->configuration['smallcmc'] = $form_state->getValue(array('sf-plugins', 'sf-smallscreen', 'sf-smallscreen-select', 'sf-smallscreen-select-more', 'superfish_smallcmc'));
-    $this->configuration['smallecm'] = $form_state->getValue(array('sf-plugins', 'sf-smallscreen', 'sf-smallscreen-select', 'sf-smallscreen-select-more', 'superfish_smallecm'));
-    $this->configuration['smallchc'] = $form_state->getValue(array('sf-plugins', 'sf-smallscreen', 'sf-smallscreen-select', 'sf-smallscreen-select-more', 'superfish_smallchc'));
-    $this->configuration['smallech'] = $form_state->getValue(array('sf-plugins', 'sf-smallscreen', 'sf-smallscreen-select', 'sf-smallscreen-select-more', 'superfish_smallech'));
-    $this->configuration['smallicm'] = $form_state->getValue(array('sf-plugins', 'sf-smallscreen', 'sf-smallscreen-select', 'sf-smallscreen-select-more', 'superfish_smallicm'));
-    $this->configuration['smallich'] = $form_state->getValue(array('sf-plugins', 'sf-smallscreen', 'sf-smallscreen-select', 'sf-smallscreen-select-more', 'superfish_smallich'));
-    $this->configuration['smallamt'] = $form_state->getValue(array('sf-plugins', 'sf-smallscreen', 'sf-smallscreen-accordion', 'superfish_smallamt'));
-    $this->configuration['smallabt'] = $form_state->getValue(array('sf-plugins', 'sf-smallscreen', 'sf-smallscreen-accordion', 'superfish_smallabt'));
-
-    $this->configuration['supersubs'] = $form_state->getValue(array('sf-plugins', 'sf-supersubs', 'superfish_supersubs'));
-    $this->configuration['minwidth'] = $form_state->getValue(array('sf-plugins', 'sf-supersubs', 'superfish_minwidth'));
-    $this->configuration['maxwidth'] = $form_state->getValue(array('sf-plugins', 'sf-supersubs', 'superfish_maxwidth'));
-
-    $this->configuration['multicolumn'] = $form_state->getValue(array('sf-multicolumn', 'superfish_multicolumn'));
-    $this->configuration['multicolumn_depth'] = $form_state->getValue(array('sf-multicolumn', 'superfish_multicolumn_depth'));
-    $this->configuration['multicolumn_levels'] = $form_state->getValue(array('sf-multicolumn', 'superfish_multicolumn_levels'));
-
-    $this->configuration['speed'] = $form_state->getValue(array('sf-advanced', 'sf-settings', 'superfish_speed'));
-    $this->configuration['delay'] = $form_state->getValue(array('sf-advanced', 'sf-settings', 'superfish_delay'));
-    $this->configuration['pathlevels'] = $form_state->getValue(array('sf-advanced', 'sf-settings', 'superfish_pathlevels'));
-    $this->configuration['expanded'] = $form_state->getValue(array('sf-advanced', 'sf-hyperlinks', 'superfish_expanded'));
-    $this->configuration['clone_parent'] = $form_state->getValue(array('sf-advanced', 'sf-hyperlinks', 'superfish_clone_parent'));
-    $this->configuration['hide_linkdescription'] = $form_state->getValue(array('sf-advanced', 'sf-hyperlinks', 'superfish_hide_linkdescription'));
-    $this->configuration['add_linkdescription'] = $form_state->getValue(array('sf-advanced', 'sf-hyperlinks', 'superfish_add_linkdescription'));
-    $this->configuration['link_depth_class'] = $form_state->getValue(array('sf-advanced', 'sf-hyperlinks', 'superfish_itemdepth'));
-    $this->configuration['custom_list_class'] = $form_state->getValue(array('sf-advanced', 'sf-custom-classes', 'superfish_ulclass'));
-    $this->configuration['custom_item_class'] = $form_state->getValue(array('sf-advanced', 'sf-custom-classes', 'superfish_liclass'));
-    $this->configuration['custom_link_class'] = $form_state->getValue(array('sf-advanced', 'sf-custom-classes', 'superfish_hlclass'));
+    $this->configuration['touch'] = $form_state->getValue(
+      array(
+        'sf-plugins',
+        'sf-touchscreen',
+        'superfish_touch',
+      )
+    );
+    $this->configuration['touchbh'] = $form_state->getValue(
+      array(
+        'sf-plugins',
+        'sf-touchscreen',
+        'superfish_touchbh',
+      )
+    );
+    $this->configuration['touchbp'] = $form_state->getValue(
+      array(
+        'sf-plugins',
+        'sf-touchscreen',
+        'sf-touchscreen-windowwidth',
+        'superfish_touchbp',
+      )
+    );
+    $this->configuration['touchua'] = $form_state->getValue(
+      array(
+        'sf-plugins',
+        'sf-touchscreen',
+        'sf-touchscreen-useragent',
+        'superfish_touchua',
+      )
+    );
+    $this->configuration['touchual'] = $form_state->getValue(
+      array(
+        'sf-plugins',
+        'sf-touchscreen',
+        'sf-touchscreen-useragent',
+        'superfish_touchual',
+      )
+    );
+    $this->configuration['touchuam'] = $form_state->getValue(
+      array(
+        'sf-plugins',
+        'sf-touchscreen',
+        'sf-touchscreen-useragent',
+        'superfish_touchuam',
+      )
+    );
+    $this->configuration['small'] = $form_state->getValue(
+      array(
+        'sf-plugins',
+        'sf-smallscreen',
+        'superfish_small',
+      )
+    );
+    $this->configuration['smallact'] = $form_state->getValue(
+      array(
+        'sf-plugins',
+        'sf-smallscreen',
+        'superfish_smallact',
+      )
+    );
+    $this->configuration['smallbp'] = $form_state->getValue(
+      array(
+        'sf-plugins',
+        'sf-smallscreen',
+        'sf-smallscreen-windowwidth',
+        'superfish_smallbp',
+      )
+    );
+    $this->configuration['smallua'] = $form_state->getValue(
+      array(
+        'sf-plugins',
+        'sf-smallscreen',
+        'sf-smallscreen-useragent',
+        'superfish_smallua',
+      )
+    );
+    $this->configuration['smallual'] = $form_state->getValue(
+      array(
+        'sf-plugins',
+        'sf-smallscreen',
+        'sf-smallscreen-useragent',
+        'superfish_smallual',
+      )
+    );
+    $this->configuration['smalluam'] = $form_state->getValue(
+      array(
+        'sf-plugins',
+        'sf-smallscreen',
+        'sf-smallscreen-useragent',
+        'superfish_smalluam',
+      )
+    );
+    $this->configuration['smallset'] = $form_state->getValue(
+      array(
+        'sf-plugins',
+        'sf-smallscreen',
+        'sf-smallscreen-select',
+        'superfish_smallset',
+      )
+    );
+    $this->configuration['smallasa'] = $form_state->getValue(
+      array(
+        'sf-plugins',
+        'sf-smallscreen',
+        'sf-smallscreen-select',
+        'superfish_smallasa',
+      )
+    );
+    $this->configuration['smallcmc'] = $form_state->getValue(
+      array(
+        'sf-plugins',
+        'sf-smallscreen',
+        'sf-smallscreen-select',
+        'sf-smallscreen-select-more',
+        'superfish_smallcmc',
+      )
+    );
+    $this->configuration['smallecm'] = $form_state->getValue(
+      array(
+        'sf-plugins',
+        'sf-smallscreen',
+        'sf-smallscreen-select',
+        'sf-smallscreen-select-more',
+        'superfish_smallecm',
+      )
+    );
+    $this->configuration['smallchc'] = $form_state->getValue(
+      array(
+        'sf-plugins',
+        'sf-smallscreen',
+        'sf-smallscreen-select',
+        'sf-smallscreen-select-more',
+        'superfish_smallchc',
+      )
+    );
+    $this->configuration['smallech'] = $form_state->getValue(
+      array(
+        'sf-plugins',
+        'sf-smallscreen',
+        'sf-smallscreen-select',
+        'sf-smallscreen-select-more',
+        'superfish_smallech',
+      )
+    );
+    $this->configuration['smallicm'] = $form_state->getValue(
+      array(
+        'sf-plugins',
+        'sf-smallscreen',
+        'sf-smallscreen-select',
+        'sf-smallscreen-select-more',
+        'superfish_smallicm',
+      )
+    );
+    $this->configuration['smallich'] = $form_state->getValue(
+      array(
+        'sf-plugins',
+        'sf-smallscreen',
+        'sf-smallscreen-select',
+        'sf-smallscreen-select-more',
+        'superfish_smallich',
+      )
+    );
+    $this->configuration['smallamt'] = $form_state->getValue(
+      array(
+        'sf-plugins',
+        'sf-smallscreen',
+        'sf-smallscreen-accordion',
+        'superfish_smallamt',
+      )
+    );
+    $this->configuration['smallabt'] = $form_state->getValue(
+      array(
+        'sf-plugins',
+        'sf-smallscreen',
+        'sf-smallscreen-accordion',
+        'superfish_smallabt',
+      )
+    );
+
+    $this->configuration['supersubs'] = $form_state->getValue(
+      array(
+        'sf-plugins',
+        'sf-supersubs',
+        'superfish_supersubs',
+      )
+    );
+    $this->configuration['minwidth'] = $form_state->getValue(
+      array(
+        'sf-plugins',
+        'sf-supersubs',
+        'superfish_minwidth',
+      )
+    );
+    $this->configuration['maxwidth'] = $form_state->getValue(
+      array(
+        'sf-plugins',
+        'sf-supersubs',
+        'superfish_maxwidth',
+      )
+    );
+    $this->configuration['multicolumn'] = $form_state->getValue(
+      array(
+        'sf-multicolumn',
+        'superfish_multicolumn',
+      )
+    );
+    $this->configuration['multicolumn_depth'] = $form_state->getValue(
+      array(
+        'sf-multicolumn',
+        'superfish_multicolumn_depth',
+      )
+    );
+    $this->configuration['multicolumn_levels'] = $form_state->getValue(
+      array(
+        'sf-multicolumn',
+        'superfish_multicolumn_levels',
+      )
+    );
+
+    $this->configuration['speed'] = $form_state->getValue(
+      array(
+        'sf-advanced',
+        'sf-settings',
+        'superfish_speed',
+      )
+    );
+    $this->configuration['delay'] = $form_state->getValue(
+      array(
+        'sf-advanced',
+        'sf-settings',
+        'superfish_delay',
+      )
+    );
+    $this->configuration['pathlevels'] = $form_state->getValue(
+      array(
+        'sf-advanced',
+        'sf-settings',
+        'superfish_pathlevels',
+      )
+    );
+    $this->configuration['expanded'] = $form_state->getValue(
+      array(
+        'sf-advanced',
+        'sf-hyperlinks',
+        'superfish_expanded',
+      )
+    );
+    $this->configuration['clone_parent'] = $form_state->getValue(
+      array(
+        'sf-advanced',
+        'sf-hyperlinks',
+        'superfish_clone_parent',
+      )
+    );
+    $this->configuration['hide_linkdescription'] = $form_state->getValue(
+      array(
+        'sf-advanced',
+        'sf-hyperlinks',
+        'superfish_hide_linkdescription',
+      )
+    );
+    $this->configuration['add_linkdescription'] = $form_state->getValue(
+      array(
+        'sf-advanced',
+        'sf-hyperlinks',
+        'superfish_add_linkdescription',
+      )
+    );
+    $this->configuration['link_depth_class'] = $form_state->getValue(
+      array(
+        'sf-advanced',
+        'sf-hyperlinks',
+        'superfish_itemdepth',
+      )
+    );
+    $this->configuration['custom_list_class'] = $form_state->getValue(
+      array(
+        'sf-advanced',
+        'sf-custom-classes',
+        'superfish_ulclass',
+      )
+    );
+    $this->configuration['custom_item_class'] = $form_state->getValue(
+      array(
+        'sf-advanced',
+        'sf-custom-classes',
+        'superfish_liclass',
+      )
+    );
+    $this->configuration['custom_link_class'] = $form_state->getValue(
+        array(
+          'sf-advanced',
+          'sf-custom-classes',
+          'superfish_hlclass',
+        )
+    );
   }
 
   /**
@@ -601,7 +854,7 @@ class SuperfishBlock extends SystemMenuBlock {
    */
   public function build() {
 
-  $build = array();
+    $build = array();
 
     // Block settings which will be passed to the Superfish themes.
     $sfsettings = array();
@@ -633,14 +886,16 @@ class SuperfishBlock extends SystemMenuBlock {
       switch ($slide[1]) {
         case 'vertical':
           $sfoptions['animation']['height'] = array('show', $slide[0]);
-        break;
+          break;
+
         case 'horizontal':
           $sfoptions['animation']['width'] = array('show', $slide[0]);
-        break;
+          break;
+
         case 'diagonal':
           $sfoptions['animation']['height'] = array('show', $slide[0]);
           $sfoptions['animation']['width'] = array('show', $slide[0]);
-        break;
+          break;
       }
       $build['#attached']['library'][] = 'superfish/superfish_easing';
     }
@@ -648,19 +903,21 @@ class SuperfishBlock extends SystemMenuBlock {
       switch ($slide) {
         case 'vertical':
           $sfoptions['animation']['height'] = 'show';
-        break;
+          break;
+
         case 'horizontal':
           $sfoptions['animation']['width'] = 'show';
-        break;
+          break;
+
         case 'diagonal':
           $sfoptions['animation']['height'] = 'show';
           $sfoptions['animation']['width'] = 'show';
-        break;
+          break;
       }
     }
     $speed = $this->configuration['speed'];
     if ($speed != 'normal') {
-      $sfoptions['speed'] = ((is_numeric($speed)) ? (int)$speed : (($speed == ('slow' || 'normal' || 'fast')) ? $speed : ''));
+      $sfoptions['speed'] = ((is_numeric($speed)) ? (int) $speed : (($speed == ('slow' || 'normal' || 'fast')) ? $speed : ''));
     }
     $sfoptions['autoArrows'] = ($this->configuration['arrow'] == 0) ? FALSE : '';
     $sfoptions['dropShadows'] = ($this->configuration['shadow'] == 0) ? FALSE : '';
@@ -681,51 +938,56 @@ class SuperfishBlock extends SystemMenuBlock {
       $behaviour = $this->configuration['touchbh'];
       $sfplugins['touchscreen']['behaviour'] = ($behaviour != 2) ? $behaviour : '';
       switch ($touchscreen) {
-        case 1 :
+        case 1:
           $sfplugins['touchscreen']['mode'] = 'always_active';
-        break;
-        case 2 :
+          break;
+
+        case 2:
           $sfplugins['touchscreen']['mode'] = 'window_width';
           $tsbp = $this->configuration['touchbp'];
-          $sfplugins['touchscreen']['breakpoint'] = ($tsbp != 768) ? (int)$tsbp : '';
-        break;
-        case 3 :
+          $sfplugins['touchscreen']['breakpoint'] = ($tsbp != 768) ? (int) $tsbp : '';
+          break;
+
+        case 3:
           // Which method to use for UA detection.
           $tsuam = $this->configuration['touchuam'];
           $tsua = $this->configuration['touchua'];
           switch ($tsuam) {
             // Client-side.
-            case 0 :
+            case 0:
               switch ($tsua) {
-                case 0 :
+                case 0:
                   $sfplugins['touchscreen']['mode'] = 'useragent_predefined';
-                break;
-                case 1 :
+                  break;
+
+                case 1:
                   $sfplugins['touchscreen']['mode'] = 'useragent_custom';
                   $tsual = drupal_strtolower($this->configuration['touchual']);
                   if (strpos($tsual, '*')) {
                     $tsual = str_replace('*', '|', $tsual);
                   }
                   $sfplugins['touchscreen']['useragent'] = $tsual;
-                break;
+                  break;
               }
-            break;
+              break;
+
             // Server-side.
-            case 1 :
+            case 1:
               if (isset($_SERVER['HTTP_USER_AGENT'])) {
                 $hua = drupal_strtolower($_SERVER['HTTP_USER_AGENT']);
                 switch ($tsua) {
                   // Use the pre-defined list of mobile UA strings.
-                  case 0 :
+                  case 0:
                     if (preg_match('/(android|bb\d+|meego)|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i', $hua)) {
                       $sfplugins['touchscreen']['mode'] = 'always_active';
                       if ($behaviour == 2) {
                         $sfsettings['clone_parent'] = 1;
                       }
                     }
-                  break;
+                    break;
+
                   // Use the custom list of UA strings.
-                  case 1 :
+                  case 1:
                     $tsual = drupal_strtolower($this->configuration['touchual']);
                     $tsuac = array();
                     if (strpos($tsual, '*')) {
@@ -743,12 +1005,12 @@ class SuperfishBlock extends SystemMenuBlock {
                         $sfsettings['clone_parent'] = 1;
                       }
                     }
-                  break;
+                    break;
                 }
               }
-            break;
+              break;
           }
-        break;
+          break;
       }
     }
 
@@ -756,49 +1018,53 @@ class SuperfishBlock extends SystemMenuBlock {
     if ($smallscreen) {
       $build['#attached']['library'][] = 'superfish/superfish_smallscreen';
       switch ($smallscreen) {
-        case 1 :
+        case 1:
           $sfplugins['smallscreen']['mode'] = 'always_active';
-        break;
-        case 2 :
+          break;
+
+        case 2:
           $sfplugins['smallscreen']['mode'] = 'window_width';
           $ssbp = $this->configuration['smallbp'];
-          $sfplugins['smallscreen']['breakpoint'] = ($ssbp != 768) ? (int)$ssbp : '';
-        break;
-        case 3 :
+          $sfplugins['smallscreen']['breakpoint'] = ($ssbp != 768) ? (int) $ssbp : '';
+          break;
+
+        case 3:
           // Which method to use for UA detection.
           $ssuam = $this->configuration['smalluam'];
           $ssua = $this->configuration['smallua'];
           switch ($ssuam) {
             // Client-side.
-            case 0 :
+            case 0:
               switch ($ssua) {
-                case 0 :
+                case 0:
                   $sfplugins['smallscreen']['mode'] = 'useragent_predefined';
-                break;
-                case 1 :
+                  break;
+
+                case 1:
                   $sfplugins['smallscreen']['mode'] = 'useragent_custom';
                   $ssual = drupal_strtolower($this->configuration['smallual']);
                   if (strpos($ssual, '*')) {
                     $ssual = str_replace('*', '|', $ssual);
                   }
                   $sfplugins['smallscreen']['useragent'] = $ssual;
-                break;
+                  break;
               }
+              break;
 
-            break;
             // Server-side.
-            case 1 :
+            case 1:
               if (isset($_SERVER['HTTP_USER_AGENT'])) {
                 $hua = drupal_strtolower($_SERVER['HTTP_USER_AGENT']);
                 switch ($ssua) {
                   // Use the pre-defined list of mobile UA strings.
-                  case 0 :
+                  case 0:
                     if (preg_match('/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i', $hua)) {
                       $sfplugins['smallscreen']['mode'] = 'always_active';
                     }
-                  break;
+                    break;
+
                   // Use the custom list of UA strings.
-                  case 1 :
+                  case 1:
                     $ssual = drupal_strtolower($this->configuration['smallual']);
                     $ssuac = array();
                     if (strpos($ssual, '*')) {
@@ -813,12 +1079,12 @@ class SuperfishBlock extends SystemMenuBlock {
                     if (in_array(1, $ssuac)) {
                       $sfplugins['smallscreen']['mode'] = 'always_active';
                     }
-                  break;
+                    break;
                 }
               }
-            break;
+              break;
           }
-        break;
+          break;
       }
       $type = $this->configuration['smallact'];
       switch ($type) {
@@ -839,13 +1105,15 @@ class SuperfishBlock extends SystemMenuBlock {
           $sfplugins['smallscreen']['excludeClass_hyperlink'] = ($chc == 1 && !empty($ech)) ? $ech : '';
           $sfplugins['smallscreen']['includeClass_menu'] = (!empty($icm)) ? $icm : '';
           $sfplugins['smallscreen']['includeClass_hyperlink'] = (!empty($ich)) ? $ich : '';
-        break;
+          break;
+
         case 1:
           $ab = $this->configuration['smallabt'];
           $sfplugins['smallscreen']['accordionButton'] = ($ab != 1) ? $ab : '';
           $sfplugins['smallscreen']['expandText'] = ($this->t('Expand') != 'Expand') ? $this->t('Expand') : '';
           $sfplugins['smallscreen']['collapseText'] = ($this->t('Collapse') != 'Collapse') ? $this->t('Collapse') : '';
-        break;
+          break;
+
       }
     }
 
@@ -868,19 +1136,21 @@ class SuperfishBlock extends SystemMenuBlock {
     // Attaching the requires JavaScript and CSS files.
     $build['#attached']['library'][] = 'superfish/superfish';
     if ($sfsettings['style'] != 'none') {
-      $build['#attached']['library'][] = 'superfish/superfish_style_'. $sfsettings['style'];
+      $build['#attached']['library'][] = 'superfish/superfish_style_' . $sfsettings['style'];
     }
 
     // Title for the small-screen menu.
     if ($smallscreen) {
       $title = '';
       switch ($type) {
-        case 0 :
+        case 0:
           $title = $this->configuration['smallset'];
-        break;
-        case 1 :
+          break;
+
+        case 1:
           $title = $this->configuration['smallamt'];
-        break;
+          break;
+
       }
       $sfplugins['smallscreen']['title'] = $title ? $title : $this->label();
     }
@@ -898,11 +1168,10 @@ class SuperfishBlock extends SystemMenuBlock {
     $tree = $this->menuTree->load($menu_name, $parameters);
     $manipulators = array(
       ['callable' => 'menu.default_tree_manipulators:checkAccess'],
-      ['callable' => 'menu.default_tree_manipulators:generateIndexAndSort']
+      ['callable' => 'menu.default_tree_manipulators:generateIndexAndSort'],
     );
     $tree = $this->menuTree->transform($tree, $manipulators);
     // Expands all the children and returns.
-
     $tree = $this->expandAll($tree);
 
     // Unique HTML ID.
@@ -921,7 +1190,7 @@ class SuperfishBlock extends SystemMenuBlock {
       '#menu_name' => $menu_name,
       '#html_id' => $html_id,
       '#tree' => $tree,
-      '#settings' => $sfsettings
+      '#settings' => $sfsettings,
     );
     return $build;
   }
@@ -936,13 +1205,13 @@ class SuperfishBlock extends SystemMenuBlock {
     }
 
     // Sorts the tree based on link "weights".
-    usort($tree, function($a, $b) {
+    usort($tree, function ($a, $b) {
       $link_a = $a->link->getPluginDefinition();
       $link_b = $b->link->getPluginDefinition();
       return $link_a['weight'] - $link_b['weight'];
     });
     foreach ($tree as $key => $element) {
-       if ($element->hasChildren && null !== $element->link && !($element->link instanceof InaccessibleMenuLink)) {
+      if ($element->hasChildren && NULL !== $element->link && !($element->link instanceof InaccessibleMenuLink)) {
         $menu_tree = \Drupal::menuTree();
         $parameters = new MenuTreeParameters();
         $parameters->setRoot($element->link->getPluginId())->excludeRoot()->setMaxDepth(1)->onlyEnabledLinks();
@@ -1008,8 +1277,8 @@ class SuperfishBlock extends SystemMenuBlock {
       'link_depth_class' => 1,
       'custom_list_class' => '',
       'custom_item_class' => '',
-      'custom_link_class' => ''
+      'custom_link_class' => '',
     ];
   }
 
-}
\ No newline at end of file
+}
diff --git a/superfish.info.yml b/superfish.info.yml
index 796b5be..24e823c 100644
--- a/superfish.info.yml
+++ b/superfish.info.yml
@@ -3,5 +3,4 @@ type: module
 description: 'Adds jQuery Superfish plugin to menu blocks.'
 package: User interface
 
-version: VERSION
 core: 8.x
diff --git a/superfish.install b/superfish.install
index 76a3423..a67a7cc 100644
--- a/superfish.install
+++ b/superfish.install
@@ -5,15 +5,14 @@
  * Install, update and uninstall functions for the Superfish module.
  */
 
-use Drupal\Core\Language\Language;
-
 /**
  * Implements hook_enable().
  */
 function superfish_install() {
-  if (superfish_library_check()){
+  if (superfish_library_check()) {
     drupal_set_message(t('In order to use Superfish, go to the <a href="@block">Block layout</a> page and use any of the "Place block" buttons to create a Superfish block.', array('@block' => 'structure/block')));
-  } else {
+  }
+  else {
     drupal_set_message(t('Superfish library is missing. Please refer to the <a href="@documentation">plugin documentation</a> for how you can fix this issue; Once done, go to the <a href="@block">Block layout</a> page and use any of the "Place block" buttons to create a Superfish block.', array('@documentation' => 'http://drupal.org/node/1125896', '@block' => 'structure/block')), 'warning');
   }
 }
diff --git a/superfish.module b/superfish.module
index 5430a94..5d71f01 100644
--- a/superfish.module
+++ b/superfish.module
@@ -2,12 +2,10 @@
 
 /**
  * @file
- * jQuery Superfish plugin for Drupal menus.
+ * The jQuery Superfish plugin for Drupal menus.
  */
 
-use Drupal\Component\Utility\Unicode;
 use Drupal\Core\Block\BlockPluginInterface;
-use Drupal\Component\Utility\SafeMarkup;
 
 /**
  * Implements hook_block_view_BASE_BLOCK_ID_alter().
@@ -35,7 +33,7 @@ function superfish_libraries_info() {
         'sfsmallscreen.js',
         'sftouchscreen.js',
         'supersubs.js',
-        'supposition.js'
+        'supposition.js',
       ),
       'css' => array(
         'css/superfish.css',
@@ -43,9 +41,9 @@ function superfish_libraries_info() {
         'style/blue/blue.css',
         'style/coffee/coffee.css',
         'style/default/default.css',
-        'style/white/white.css'
-      )
-    )
+        'style/white/white.css',
+      ),
+    ),
   );
   return $libraries;
 }
@@ -196,7 +194,7 @@ function superfish_library_info_build() {
  * Returns the Superfish library folder location.
  */
 function superfish_library_path($library = 'superfish') {
-  $directory = false;
+  $directory = FALSE;
   // Ensure the Libraries API module is installed and working.
   if (function_exists('libraries_get_path') && ($directory = libraries_get_path($library))) {
     return $directory;
@@ -255,7 +253,7 @@ function superfish_effects() {
     'none' => '- ' . t('None') . ' -',
     'vertical' => t('Vertical'),
     'horizontal' => t('Horizontal'),
-    'diagonal' => t('Diagonal')
+    'diagonal' => t('Diagonal'),
   );
 
   if (superfish_library_path('easing')) {
@@ -289,7 +287,7 @@ function superfish_effects() {
       'easeInBounce_diagonal' => 'easeInBounce (' . t('Diagonal') . ')',
       'easeInBack_vertical' => 'easeInBack (' . t('Vertical') . ')',
       'easeInBack_horizontal' => 'easeInBack (' . t('Horizontal') . ')',
-      'easeInBack_diagonal' => 'easeInBack (' . t('Diagonal') . ')'
+      'easeInBack_diagonal' => 'easeInBack (' . t('Diagonal') . ')',
     );
     $output = array_merge($output, $easing_types);
   }
@@ -325,6 +323,6 @@ function superfish_theme($existing, $type, $theme, $path) {
     'superfish_menu_items' => array(
       'render element' => 'element',
       'file' => 'superfish.theme.inc',
-    )
+    ),
   );
 }
diff --git a/superfish.theme.inc b/superfish.theme.inc
index 89c4969..bc22a85 100644
--- a/superfish.theme.inc
+++ b/superfish.theme.inc
@@ -5,12 +5,9 @@
  */
 
 use Drupal\Core\Url;
-use Drupal\Core\Menu\MenuLinkDefault;
 use Drupal\Core\Menu\InaccessibleMenuLink;
 use Drupal\Core\Language\LanguageInterface;
-use Drupal\Core\Template\Attribute;
 use Drupal\Component\Utility\Html;
-use Drupal\Component\Utility\Unicode;
 use Drupal\Component\Utility\SafeMarkup;
 
 /**
@@ -29,7 +26,6 @@ use Drupal\Component\Utility\SafeMarkup;
  *
  * @see superfish.html.twig
  */
-
 function template_preprocess_superfish(array &$variables) {
   $element = $variables['element'];
 
@@ -38,7 +34,7 @@ function template_preprocess_superfish(array &$variables) {
     '#menu_name' => $element['#menu_name'],
     '#tree' => $element['#tree'],
     '#settings' => $element['#settings'],
-    '#cloned_parent' => false
+    '#cloned_parent' => FALSE,
   );
 
   $menu_classes = array('menu', 'sf-menu');
@@ -79,7 +75,6 @@ function template_preprocess_superfish(array &$variables) {
  *
  * @see superfish-menu-items.html.twig
  */
-
 function template_preprocess_superfish_menu_items(array &$variables) {
 
   $element = $variables['element'];
@@ -103,7 +98,7 @@ function template_preprocess_superfish_menu_items(array &$variables) {
 
   foreach ($menu as $key => $menu_item) {
 
-    if (null !== $menu_item->link && !($menu_item->link instanceof InaccessibleMenuLink)) {
+    if (NULL !== $menu_item->link && !($menu_item->link instanceof InaccessibleMenuLink)) {
 
       $item_class = $link_class = array();
       $multicolumn_wrapper = $multicolumn_column = $multicolumn_content = FALSE;
@@ -122,7 +117,7 @@ function template_preprocess_superfish_menu_items(array &$variables) {
         'subtree'       => $menu_item->subtree,
         'depth'         => $menu_item->depth,
         'hasChildren'   => $menu_item->hasChildren,
-        'inActiveTrail' => $menu_item->inActiveTrail
+        'inActiveTrail' => $menu_item->inActiveTrail,
       );
 
       if (!isset($item['options']['external'])) {
@@ -145,7 +140,8 @@ function template_preprocess_superfish_menu_items(array &$variables) {
       // Add menu link depth classes to the <li> element and its link.
       $link_class[] = $settings['itemdepth'] ? 'sf-depth-' . $item['depth'] : '';
       $item_class[] = $settings['itemdepth'] ? 'sf-depth-' . $item['depth'] : '';
-      // Indicates a cloned parent link, i.e. does not exist in the actual menu tree.
+      // Indicates a cloned parent link, i.e. does not exist in the
+      // actual menu tree.
       $item_class[] = $element['#cloned_parent'] ? 'sf-clone-parent' : '';
 
       // Adding custom <li> classes.
@@ -177,7 +173,8 @@ function template_preprocess_superfish_menu_items(array &$variables) {
       if ($settings['add_linkdescription'] && !empty($item['description'])) {
         $link_text = '@text <span class="sf-description">@description</span>';
         $link_text_replace = array('@text' => $item['text'], '@description' => $item['description']);
-      } else {
+      }
+      else {
         $link_text = '@text';
         $link_text_replace = array('@text' => $item['text']);
       }
@@ -213,7 +210,7 @@ function template_preprocess_superfish_menu_items(array &$variables) {
           '#menu_name'     => $element['#menu_name'],
           '#tree'          => $item['subtree'],
           '#settings'      => $sfsettings,
-          '#cloned_parent' => $cloned_parent
+          '#cloned_parent' => $cloned_parent,
         );
 
         if ($item['subtree']) {
@@ -247,24 +244,24 @@ function template_preprocess_superfish_menu_items(array &$variables) {
         '#type' => 'link',
         '#title' => SafeMarkup::format($link_text, $link_text_replace),
         '#url' => $item['url'],
-        '#options' => $item['options']
+        '#options' => $item['options'],
       );
       $link_element_menuparent = array(
         '#type' => 'link',
         '#title' => SafeMarkup::format($link_text, $link_text_replace),
         '#url' => $item['url'],
-        '#options' => $item['options_menuparent']
+        '#options' => $item['options_menuparent'],
       );
 
       $variables['menu_items'][] = array(
-        'id'                  => Html::getUniqueId($element['#menu_name'] .'-'. $item['id']),
+        'id'                  => Html::getUniqueId($element['#menu_name'] . '-' . $item['id']),
         'item_class'          => $item_class,
         'link'                => $link_element,
         'link_menuparent'     => $link_element_menuparent,
         'children'            => $children,
         'multicolumn_wrapper' => $multicolumn_wrapper,
         'multicolumn_content' => $multicolumn_content,
-        'multicolumn_column'  => $multicolumn_column
+        'multicolumn_column'  => $multicolumn_column,
       );
     }
   }
