diff --git a/README.txt b/README.txt
index 7fc9cfb..0c2f81c 100644
--- a/README.txt
+++ b/README.txt
@@ -3,7 +3,9 @@
 OVERVIEW
 ---------
 
-This module provides a smooth scroll effect in all the pages using the jQuery.scrollSpeed plugin. Additionally, there is a configuration option to admin to control the scroll step and speed.
+This module provides a smooth scroll effect in all the pages using the
+jQuery.scrollSpeed plugin. Additionally, there is a configuration option to
+admin to control the scroll step and speed.
 
 CONTENTS OF THIS FILE
 ---------------------
@@ -17,7 +19,9 @@ CONTENTS OF THIS FILE
 INTRODUCTION
 ------------
 
-Smooth Mouse Scrolling module provides a smooth scroll effect in all the pages using the jQuery.scrollSpeed plugin. Additionally, there is a configuration option to admin to control the scroll step and speed.
+Smooth Mouse Scrolling module provides a smooth scroll effect in all the pages
+using the jQuery.scrollSpeed plugin. Additionally, there is a configuration
+option to admin to control the scroll step and speed.
 
  * For a full description of the module visit:
    
@@ -47,12 +51,14 @@ CONFIGURATION
 
 	1.Install this module.
 
-	2.Go to the smooth mouse scrolling module in the Extend admin menu then click on the configure option.
+	2.Go to the smooth mouse scrolling module in the Extend admin menu
+          then click on the configure option.
 
-	3.In the configure page, user can provide the Step value and Speed value which applies to all pages.
+	3.In the configure page, user can provide the Step value and Speed
+          value which applies to all pages.
 
 
 MAINTAINERS
 -----------
 
- *Siva I (siva_drupal) - https://www.drupal.org/u/siva_drupal
\ No newline at end of file
+ *Siva I (siva_drupal) - https://www.drupal.org/u/siva_drupal
diff --git a/config/install/smooth_mouse_scrolling.settings.yml b/config/install/smooth_mouse_scrolling.settings.yml
index e231b61..04ef044 100644
--- a/config/install/smooth_mouse_scrolling.settings.yml
+++ b/config/install/smooth_mouse_scrolling.settings.yml
@@ -1,2 +1,2 @@
 step: 100
-speed: 2000
\ No newline at end of file
+speed: 2000
diff --git a/smooth_mouse_scrolling.libraries.yml b/smooth_mouse_scrolling.libraries.yml
index 484b352..b273183 100644
--- a/smooth_mouse_scrolling.libraries.yml
+++ b/smooth_mouse_scrolling.libraries.yml
@@ -4,4 +4,4 @@ scrool-speed:
     js/scrollSpeed.js: {}
     
   dependencies:
-    - core/jquery
\ No newline at end of file
+    - core/jquery
diff --git a/smooth_mouse_scrolling.module b/smooth_mouse_scrolling.module
index 1f4229c..f78984d 100644
--- a/smooth_mouse_scrolling.module
+++ b/smooth_mouse_scrolling.module
@@ -33,4 +33,4 @@ function smooth_mouse_scrolling_page_attachments(array &$page) {
   $page['#attached']['library'][] = 'smooth_mouse_scrolling/scrool-speed';
   $page['#attached']['drupalSettings']['smooth_scroll']['scrool_speed']['step'] = $step;
   $page['#attached']['drupalSettings']['smooth_scroll']['scrool_speed']['speed'] = $speed;
-}
\ No newline at end of file
+}
diff --git a/smooth_mouse_scrolling.routing.yml b/smooth_mouse_scrolling.routing.yml
index 5fb2975..a668eaa 100644
--- a/smooth_mouse_scrolling.routing.yml
+++ b/smooth_mouse_scrolling.routing.yml
@@ -4,4 +4,4 @@ smooth_mouse_scrolling.form:
     _title: 'Smooth mouse scrolling configuration'
     _form: '\Drupal\smooth_mouse_scrolling\Form\SmoothScroll'
   requirements:
-    _permission: 'access administration pages'
\ No newline at end of file
+    _permission: 'administer site configuration'
diff --git a/src/Form/SmoothScroll.php b/src/Form/SmoothScroll.php
index de9b5d7..2f94170 100644
--- a/src/Form/SmoothScroll.php
+++ b/src/Form/SmoothScroll.php
@@ -1,23 +1,24 @@
 <?php
-/**
- * @file
- * Contains \Drupal\resume\Form\ResumeForm.
- */
+
 namespace Drupal\smooth_mouse_scrolling\Form;
 
-use Drupal\Core\Form\FormBase;
 use Drupal\Core\Form\FormStateInterface;
 
 use Drupal\Core\Form\ConfigFormBase;
 
+/**
+ * Smooth scroll.
+ */
 class SmoothScroll extends ConfigFormBase {
+
   /**
    * {@inheritdoc}
    */
   public function getFormId() {
     return 'smooth_scroll';
   }
-  /** 
+
+  /**
    * {@inheritdoc}
    */
   protected function getEditableConfigNames() {
@@ -25,6 +26,7 @@ class SmoothScroll extends ConfigFormBase {
       'smooth_mouse_scrolling.settings',
     ];
   }
+
   /**
    * {@inheritdoc}
    */
@@ -34,28 +36,28 @@ class SmoothScroll extends ConfigFormBase {
     $form['step'] = [
       '#type' => 'textfield',
       '#attributes' => [
-          'data-type' => 'number',
+        'data-type' => 'number',
       ],
       '#title' => 'Step',
       '#width' => '30%',
       '#align' => 'center',
-      '#required' => false,
-      '#description' => t('Enter the scroll step.'),
-      '#default_value' => isset($config) ? $config->get('step') : '', 
-      '#maxlength' => 10
+      '#required' => FALSE,
+      '#description' => $this->t('Enter the scroll step.'),
+      '#default_value' => isset($config) ? $config->get('step') : '',
+      '#maxlength' => 10,
     ];
     $form['speed'] = [
       '#type' => 'textfield',
       '#attributes' => [
-          'data-type' => 'number',
+        'data-type' => 'number',
       ],
       '#title' => 'Speed',
       '#width' => '30%',
       '#align' => 'center',
-      '#required' => false,
-      '#description' => t('Enter the scroll speed.'),
-      '#default_value' => isset($config)? $config->get('speed') : '',
-      '#maxlength' => 10
+      '#required' => FALSE,
+      '#description' => $this->t('Enter the scroll speed.'),
+      '#default_value' => isset($config) ? $config->get('speed') : '',
+      '#maxlength' => 10,
     ];
 
     $form['actions']['#type'] = 'actions';
@@ -70,29 +72,31 @@ class SmoothScroll extends ConfigFormBase {
   /**
    * {@inheritdoc}
    */
-    public function validateForm(array &$form, FormStateInterface $form_state) {
-      if (!is_numeric($form_state->getValue('step'))) {
-        $form_state->setErrorByName('step', $this->t('Step field must be in integer.'));
-      }
-      if (!is_numeric($form_state->getValue('speed'))) {
-        $form_state->setErrorByName('speed', $this->t('Speed field must be in integer.'));
-      }
+  public function validateForm(array &$form, FormStateInterface $form_state) {
+    if (!is_numeric($form_state->getValue('step'))) {
+      $form_state->setErrorByName('step', $this->t('Step field must be in integer.'));
     }
+    if (!is_numeric($form_state->getValue('speed'))) {
+      $form_state->setErrorByName('speed', $this->t('Speed field must be in integer.'));
+    }
+  }
+
   /**
    * {@inheritdoc}
    */
   public function submitForm(array &$form, FormStateInterface $form_state) {
-    $step = (int)$form_state->getValue('step');
-    $speed = (int)$form_state->getValue('speed');
+    $step = (int) $form_state->getValue('step');
+    $speed = (int) $form_state->getValue('speed');
 
-    // Retrieve the configuration
+    // Retrieve the configuration.
     $this->configFactory->getEditable('smooth_mouse_scrolling.settings')
-      // Set the submitted configuration setting
+      // Set the submitted configuration setting.
       ->set('step', $step)
       // You can set multiple configurations at once by making
       // multiple calls to set()
       ->set('speed', $speed)
       ->save();
     parent::submitForm($form, $form_state);
-   }
+  }
+
 }
