diff --git a/adstxt_logs.install b/adstxt_logs.install
index 0f706fa..90e23cd 100644
--- a/adstxt_logs.install
+++ b/adstxt_logs.install
@@ -6,46 +6,45 @@
  */
 
 /**
- * @Implements hook_schmea
-*/
+ * Implements hook_schmea().
+ */
 function adstxt_logs_schema() {
- $schema = array();
+  $schema = array();
 
- $schema['adstxt_logs'] = array(
-  'description' => 'Records the users who have modified ads.txt file',
-  'fields' => array(
-    'id' => array(
-      'description' => 'Unique adstxt_logs ID',
-      'type' => 'serial',
-      'not null' => TRUE,
+  $schema['adstxt_logs'] = array(
+    'description' => 'Records the users who have modified ads.txt file',
+    'fields' => array(
+      'id' => array(
+        'description' => 'Unique adstxt_logs ID',
+        'type' => 'serial',
+        'not null' => TRUE,
       ),
-    'uid' => array(
-      'description' => "User's ID",
-      'type' => 'int',
-      'not null' => FALSE,
+      'uid' => array(
+        'description' => "User's ID",
+        'type' => 'int',
+        'not null' => FALSE,
       ),
-    'modified_on' => array(
-      'description' => 'Timestamp for when ads.txt file was modified',
-      'type' => 'int',
-      'not null' => FALSE,
+      'modified_on' => array(
+        'description' => 'Timestamp for when ads.txt file was modified',
+        'type' => 'int',
+        'not null' => FALSE,
       ),
-    'content' => array(
-      'description' => 'Contents of ads.txt file',
-      'type' => 'text',
-      'not null' => FALSE,
+      'content' => array(
+        'description' => 'Contents of ads.txt file',
+        'type' => 'text',
+        'not null' => FALSE,
       ),
-    'comment' => array(
-      'description' => 'Remark if the version is a copy of exisiting file.',
-      'type' => 'text',
-      'not null' => FALSE,
+      'comment' => array(
+        'description' => 'Remark if the version is a copy of exisiting file.',
+        'type' => 'text',
+        'not null' => FALSE,
       ),
     ),
-  'primary key' => array('id'),
-  'indexes' => array(
-    'uid' => array('uid')
+    'primary key' => array('id'),
+    'indexes' => array(
+      'uid' => array('uid'),
     ),
   );
 
- return $schema;
+  return $schema;
 }
-
diff --git a/adstxt_logs.module b/adstxt_logs.module
index 8db800c..bcb4eac 100755
--- a/adstxt_logs.module
+++ b/adstxt_logs.module
@@ -2,12 +2,11 @@
 
 /**
  * @file
- * Shows a timestamp and username of modifier of the ads.txt
+ * Shows a timestamp and username of modifier of the ads.txt.
  */
 
 /**
- * Implements hook_form_alter
- * Load the current module by default or restore the asked version
+ * Implements hook_form_alter() for adstxt.
  */
 function adstxt_logs_form_alter(&$form, &$form_state, $form_id) {
 
@@ -23,7 +22,7 @@ function adstxt_logs_form_alter(&$form, &$form_state, $form_id) {
       '#executes_submit_callback' => TRUE,
       '#submit' => array('custom_cancel'),
       '#weight' => 1000,
-      );
+    );
     if (!empty($_GET['restore_id'])) {
       $form['adstxt']['#default_value'] = _adstxt_logs_file_restore($_GET['restore_id']);
     }
@@ -40,7 +39,7 @@ function adstxt_logs_menu() {
     'page arguments' => array(1),
     'access arguments' => array('administer ads.txt'),
     'type' => MENU_CALLBACK,
-    );
+  );
   return $items;
 }
 
@@ -52,14 +51,12 @@ function adstxt_logs_permission() {
     'administer ads.txt' => array(
       'title' => t('Access to Ads.txt'),
       'description' => t('Defining Access Priviledge of Ads.txt'),
-      ),
-    );
+    ),
+  );
 }
 
 /**
- * Submit action when adstxt_logs admin settings form is saved
- * @param $form
- * @param $form_state
+ * Submit action when adstxt_logs admin settings form is saved.
  */
 function _adstxt_logs_settings_submit($form, $form_state) {
   $explode_old_string = explode(PHP_EOL, $form['adstxt']['#default_value']);
@@ -85,27 +82,27 @@ function _adstxt_logs_settings_submit($form, $form_state) {
     }
   }
 
-  if ($addlog || (!empty($_GET['restore_id']) && !$addlog )) {
+  if ($addlog || (!empty($_GET['restore_id']) && !$addlog)) {
     if (empty($_GET['restore_id']) || (!empty($_GET['restore_id']) && $addlog)) {
       $status = db_insert('adstxt_logs')
-      ->fields(array(
-        'uid' => $uid,
-        'modified_on' => $modified_on,
-        'content' => $adstxt,
-        'comment' => '-',
+        ->fields(array(
+          'uid' => $uid,
+          'modified_on' => $modified_on,
+          'content' => $adstxt,
+          'comment' => '-',
         ))
-      ->execute();
+        ->execute();
     }
     else {
       $message = 'Copy of Entry Id ' . $_GET['restore_id'];
       $status = db_insert('adstxt_logs')
-      ->fields(array(
-        'uid' => $uid,
-        'modified_on' => $modified_on,
-        'content' => $adstxt,
-        'comment' => $message,
+        ->fields(array(
+          'uid' => $uid,
+          'modified_on' => $modified_on,
+          'content' => $adstxt,
+          'comment' => $message,
         ))
-      ->execute();
+        ->execute();
     }
     if ($status < 0) {
       drupal_set_message(t('Error while saving ads.txt log'), 'error');
@@ -116,10 +113,7 @@ function _adstxt_logs_settings_submit($form, $form_state) {
 }
 
 /**
- * Displays recent logs of users who accessed the ads.txt
- *
- * @param $default_count
- * Define the pagination limit.
+ * Displays recent logs of users who accessed the ads.txt.
  */
 function _adstxt_logs_view($default_count = 10) {
   drupal_add_css(drupal_get_path('module', 'adstxt_logs') . '/css/adstxtlogs.css');
@@ -132,52 +126,52 @@ function _adstxt_logs_view($default_count = 10) {
       'data' => "Id",
       'field' => "atl.id",
       'style' => array('font-weight:bold;'),
-      ),
+    ),
     array(
       'data' => "User name",
       'style' => array('font-weight:bold;'),
       'field' => 'usr.name',
-      ),
+    ),
     array(
       'data' => "Modified On",
       'style' => array('font-weight:bold;'),
       'field' => 'atl.modified_on',
       'sort' => 'desc',
-      ),
+    ),
     array(
       'data' => "Action",
       'style' => array('font-weight:bold;'),
-      ),
+    ),
     array(
       'data' => "View / Restore",
       'style' => array('font-weight:bold;'),
-      ),
+    ),
     array(
       'data' => "Comment",
       'style' => array('font-weight:bold;'),
-      )
-    );
+    ),
+  );
   $query = db_select('adstxt_logs', 'atl');
   $query->fields('atl');
   $query->leftJoin('users', 'usr', 'atl.uid = usr.uid');
   $query->fields('usr', array('name'));
   $query->extend('TableSort')
-  ->orderByHeader($headers);
+    ->orderByHeader($headers);
   $query = $query->extend('PagerDefault')
-  ->limit($default_count);
+    ->limit($default_count);
   $result = $query->execute()
-  ->fetchAll();
+    ->fetchAll();
   $rows = array();
   if (is_array($result) && count($result) > 0) {
     foreach ($result as $key => $value) {
       $rows[] = array(
         $value->id,
         $value->name,
-        date('l, Y-m-d g:i a' , $value->modified_on),
+        date('l, Y-m-d g:i a', $value->modified_on),
         l(t('Download'), 'adstxt-file-revision/' . $value->id),
         '<a href="/admin/config/system/adstxt?restore_id=' . $value->id . '"><img src = "/' . $restore_img_path . '" alt="Restore/View" title="Click to view / edit version or restore this as the current version." /></a>',
         $value->comment,
-        );
+      );
     }
   }
   $output .= '<div class = "module-title"><h1>Log Entries</h1></div>';
@@ -187,16 +181,14 @@ function _adstxt_logs_view($default_count = 10) {
 }
 
 /**
- *  Custon function for cancel action
+ * Custon function for cancel action.
  */
 function custom_cancel() {
   drupal_goto('/admin/config/system/adstxt');
 }
 
 /**
- * Download ads.txt file
- * @param $id
- * Log ID
+ * Download ads.txt file.
  */
 function _adstxt_logs_file_revision($id) {
   if (empty($id) || !is_numeric($id)) {
@@ -204,10 +196,10 @@ function _adstxt_logs_file_revision($id) {
     drupal_goto('admin/config/system/adstxt');
   }
   $data = db_select('adstxt_logs', 'atl')
-  ->fields('atl', array('content'))
-  ->condition('id', $id, '=')
-  ->execute()
-  ->fetchField();
+    ->fields('atl', array('content'))
+    ->condition('id', $id, '=')
+    ->execute()
+    ->fetchField();
   if (empty($data)) {
     drupal_set_message(t('Invalid Entry'), 'error');
     drupal_goto('admin/config/system/adstxt');
@@ -219,16 +211,14 @@ function _adstxt_logs_file_revision($id) {
 }
 
 /**
- * View previous versions of ads.txt file
- * @param $id
- * Log ID
+ * View previous versions of ads.txt file.
  */
 function _adstxt_logs_file_restore($id) {
   $content = db_select('adstxt_logs', 'atl')
-  ->fields('atl', array('content'))
-  ->condition('id', $id, '=')
-  ->execute()
-  ->fetchField();
+    ->fields('atl', array('content'))
+    ->condition('id', $id, '=')
+    ->execute()
+    ->fetchField();
   drupal_set_message(t('View of Version %id_value shown. Click on "Save Configuration" to restore this as the current version.', array('%id_value' => $id)), 'warning');
 
   return $content;
diff --git a/css/adstxtlogs.css b/css/adstxtlogs.css
index 660a3f9..0192c4b 100644
--- a/css/adstxtlogs.css
+++ b/css/adstxtlogs.css
@@ -4,4 +4,4 @@
 }
 .module-title + a {
   float: right;
-}
\ No newline at end of file
+}
