diff --git a/README.txt b/README.txt
index 5a0a632..a1adefb 100644
--- a/README.txt
+++ b/README.txt
@@ -1,10 +1,12 @@
 Module: Log User Updates
 Description:
-This module log the history of user updatation. If a user update other user account than it module keep track. 
+This module log the history of user updatation. If a user update other
+user account than it module keep track. 
 
 Inforation for Developers:
-In this module there is a export.txt(log_user_update/views/export.txt) file. Open this file and import the view to your project. This view will show the User Updation history.
+In this module there is a export.txt(log_user_update/views/export.txt)
+file. Open this file and import the view to your project. This view will
+show the User Updation history.
 
 Thanks,
 Neeraj Kr
-
diff --git a/log_user_updates.info b/log_user_updates.info
index 8324eda..5122c40 100755
--- a/log_user_updates.info
+++ b/log_user_updates.info
@@ -1,8 +1,5 @@
 name = Log User Updates
 description = Module logs the data when User is updated by Another User/admin/Subadmin etc. So it logs Which user updated other user account.
-version = "7.x-1.0-beta1"
 core = "7.x"
 datestamp = "1505988489"
 dependencies[] = views
-
-
diff --git a/log_user_updates.install b/log_user_updates.install
index f2901b8..33c2e6d 100755
--- a/log_user_updates.install
+++ b/log_user_updates.install
@@ -1,44 +1,45 @@
-<?php 
+<?php
+
+/**
+ * @file
+ * {@inheritdoc}
+ */
+
 /**
  * Implements hook_schema().
  */
 function log_user_updates_schema() {
- 
-$schema['user_update_history'] = array(
-      'description' => 'Table logs user update history',
-      'fields' => array(
-        'id' => array(
+
+  $schema['user_update_history'] = array(
+    'description' => 'Table logs user update history',
+    'fields' => array(
+      'id' => array(
         'description' => 'The primary identifier for a user.',
         'type' => 'serial',
         'unsigned' => TRUE,
         'not null' => TRUE,
-          ),
-        'updated_uid' => array(
-              'type' => 'int',
-              'unsigned' => TRUE,
-              'not null' => TRUE,
-              'default' => 0,
-          ),
-         'updated_by_uid' => array(
-              'type' => 'int',
-              'unsigned' => TRUE,
-              'not null' => TRUE,
-              'default' => 0,
-          ),
-          'updated' => array(
-              'type' => 'text',
-              'not null' => TRUE,
-              
-          ),
-           
       ),
-      'primary key' => array('id'),
-  );
-
+      'updated_uid' => array(
+        'type' => 'int',
+        'unsigned' => TRUE,
+        'not null' => TRUE,
+        'default' => 0,
+      ),
+      'updated_by_uid' => array(
+        'type' => 'int',
+        'unsigned' => TRUE,
+        'not null' => TRUE,
+        'default' => 0,
+      ),
+      'updated' => array(
+        'type' => 'text',
+        'not null' => TRUE,
 
+      ),
 
+    ),
+    'primary key' => array('id'),
+  );
 
   return $schema;
 }
-
-
diff --git a/log_user_updates.module b/log_user_updates.module
index 9c77358..9e6a339 100755
--- a/log_user_updates.module
+++ b/log_user_updates.module
@@ -1,48 +1,54 @@
 <?php
 
-/*
- * Implements hook_user_update
+/**
+ * @file
+ * Implements hook_user_update.
  */
 
-function log_user_updates_user_update(&$edit, $account, $category){
-    global $user;
-    
-    if($user->uid != $account->uid){ 
-        //Above condition prevents to log data if user update his account himself.
-        $db_query = db_select('user_update_history', 'uh');
-        $db_query->fields('uh', array('id'));
-        $db_query->condition('uh.updated_uid', $account->uid, '=');
-        $db_query->condition('uh.updated_by_uid', $user->uid, '=');
-        $count = $db_query->execute()->rowCount();
-        if($count > 0){
-           $num_deleted = db_delete('user_update_history')
-                        ->condition('updated_uid', $account->uid)
-                        ->condition('updated_by_uid', $user->uid)
-                        ->execute();
-           $uid = db_insert('user_update_history') 
-                    ->fields(array(
-                      'updated_uid' => $account->uid,
-                      'updated_by_uid' => $user->uid,
-                      'updated' => REQUEST_TIME,
-                    ))
-                    ->execute();
-                            }else{
-                        $uid = db_insert('user_update_history') 
-                    ->fields(array(
-                      'updated_uid' => $account->uid,
-                      'updated_by_uid' => $user->uid,
-                      'updated' => REQUEST_TIME,
-                    ))
-                    ->execute();
-        }
+/**
+ * {@inheritdoc}
+ */
+function log_user_updates_user_update(&$edit, $account, $category) {
+  global $user;
+
+  if ($user->uid != $account->uid) {
+    // Above condition prevents to log data if user update his account himself.
+    $db_query = db_select('user_update_history', 'uh');
+    $db_query->fields('uh', array('id'));
+    $db_query->condition('uh.updated_uid', $account->uid, '=');
+    $db_query->condition('uh.updated_by_uid', $user->uid, '=');
+    $count = $db_query->execute()->rowCount();
+    if ($count > 0) {
+      $num_deleted = db_delete('user_update_history')
+        ->condition('updated_uid', $account->uid)
+        ->condition('updated_by_uid', $user->uid)
+        ->execute();
+      $uid = db_insert('user_update_history')
+        ->fields(array(
+          'updated_uid' => $account->uid,
+          'updated_by_uid' => $user->uid,
+          'updated' => REQUEST_TIME,
+        ))
+        ->execute();
     }
+    else {
+      $uid = db_insert('user_update_history')
+        ->fields(array(
+          'updated_uid' => $account->uid,
+          'updated_by_uid' => $user->uid,
+          'updated' => REQUEST_TIME,
+        ))
+        ->execute();
+    }
+  }
 }
 
- /**
- * Implements hook_views_api()
+/**
+ * Implements hook_views_api().
  */
- function log_user_updates_views_api(){
-  return array('api' => '3.0',
-   'path' => drupal_get_path('module', 'log_user_updates'). '/views',
-   );
-   }
\ No newline at end of file
+function log_user_updates_views_api() {
+  return array(
+    'api' => '3.0',
+    'path' => drupal_get_path('module', 'log_user_updates') . '/views',
+  );
+}
diff --git a/views/log_user_updates.views.inc b/views/log_user_updates.views.inc
index 00e6486..bb9226c 100644
--- a/views/log_user_updates.views.inc
+++ b/views/log_user_updates.views.inc
@@ -1,100 +1,103 @@
-
 <?php
 
 /**
- * Implement hook_views_data
- *
+ * @file
+ * {@inheritdoc}
  */
-function log_user_updates_views_data() {
-    $data = array();
-    $data['user_update_history']['table']['group'] = t('User Log History');
 
-    $data['user_update_history']['table']['base'] = array(
-        'field' => 'id', // This is the identifier field for the view.
-        'title' => t('User Log History'),
-        'help' => t('User Log History'),
-        'weight' => -10,
-        'description' => 'Updated user history',
-    );
+/**
+ * Implements hook_views_data().
+ */
+function log_user_updates_views_data() {
+  $data = array();
+  $data['user_update_history']['table']['group'] = t('User Log History');
 
+  $data['user_update_history']['table']['base'] = array(
+  // This is the identifier field for the view.
+    'field' => 'id',
+    'title' => t('User Log History'),
+    'help' => t('User Log History'),
+    'weight' => -10,
+    'description' => 'Updated user history',
+  );
 
-    $data['user_update_history']['table']['join'] = array(
-        'users' => array(
-            'left_field' => 'uid',
-            'field' => 'updated_uid',
-        ),
-    );
-    $data['user_update_history']['table']['join'] = array(
-        'users' => array(
-            'left_field' => 'uid',
-            'field' => 'updated_by_uid',
-        ),
-    );
+  $data['user_update_history']['table']['join'] = array(
+    'users' => array(
+      'left_field' => 'uid',
+      'field' => 'updated_uid',
+    ),
+  );
+  $data['user_update_history']['table']['join'] = array(
+    'users' => array(
+      'left_field' => 'uid',
+      'field' => 'updated_by_uid',
+    ),
+  );
 
-    $data['user_update_history']['updated_uid'] = array(
-        'title' => t('Updated user id'),
-        'help' => t('This user was updated'),
-        'filter' => array(
-            'handler' => 'views_handler_filter_string',
-        ),
-        'field' => array(
-            'handler' => 'views_handler_field',
-            'click sortable' => TRUE,
-        ),
-        'sort' => array(
-            'handler' => 'views_handler_sort',
-        ),
-        'argument' => array(
-            'handler' => 'views_handler_argument',
-        ),
-        'relationship' => array(
-            'base' => 'users',
-            'base field' => 'uid', 
-            'handler' => 'views_handler_relationship',
-            'label' => t('Updated user'),
-        ),
-    );
-    $data['user_update_history']['updated_by_uid'] = array(
-        'title' => t('User Id who Updated'),
-        'help' => t('By this User other user account/profile was updated'),
-        'field' => array(
-            'handler' => 'views_handler_field',
-            'click sortable' => TRUE,
-        ),
-        'filter' => array(
-            'handler' => 'views_handler_filter_string',
-        ),
-        'sort' => array(
-            'handler' => 'views_handler_sort',
-        ),
-        'argument' => array(
-            'handler' => 'views_handler_argument',
-        ),
-        'relationship' => array(
-            'base' => 'users',
-            'base field' => 'uid', 
-            'handler' => 'views_handler_relationship',
-            'label' => t('Updated By'),
-        ),
-    );
-    $data['user_update_history']['updated'] = array(
-        'title' => t('Updated Time'),
-        'help' => t('Updated time of User account'),
-        'field' => array(
-            'handler' => 'views_handler_field_date',
-            'click sortable' => TRUE,
-            'is date' => TRUE,
-        ),
-        'filter' => array(
-            'handler' => 'views_handler_filter_string',
-        ),
-        'sort' => array(
-            'handler' => 'views_handler_sort',
-        ),
-        'argument' => array(
-            'handler' => 'views_handler_argument',
-        ),
-    );
+  $data['user_update_history']['updated_uid'] = array(
+    'title' => t('Updated user id'),
+    'help' => t('This user was updated'),
+    'filter' => array(
+      'handler' => 'views_handler_filter_string',
+    ),
+    'field' => array(
+      'handler' => 'views_handler_field',
+      'click sortable' => TRUE,
+    ),
+    'sort' => array(
+      'handler' => 'views_handler_sort',
+    ),
+    'argument' => array(
+      'handler' => 'views_handler_argument',
+    ),
+    'relationship' => array(
+      'base' => 'users',
+      'base field' => 'uid',
+      'handler' => 'views_handler_relationship',
+      'label' => t('Updated user'),
+    ),
+  );
+  $data['user_update_history']['updated_by_uid'] = array(
+    'title' => t('User Id who Updated'),
+    'help' => t('By this User other user account/profile was updated'),
+    'field' => array(
+      'handler' => 'views_handler_field',
+      'click sortable' => TRUE,
+    ),
+    'filter' => array(
+      'handler' => 'views_handler_filter_string',
+    ),
+    'sort' => array(
+      'handler' => 'views_handler_sort',
+    ),
+    'argument' => array(
+      'handler' => 'views_handler_argument',
+    ),
+    'relationship' => array(
+      'base' => 'users',
+      'base field' => 'uid',
+      'handler' => 'views_handler_relationship',
+      'label' => t('Updated By'),
+    ),
+  );
+  $data['user_update_history']['updated'] = array(
+    'title' => t('Updated Time'),
+    'help' => t('Updated time of User account'),
+    'field' => array(
+      'handler' => 'views_handler_field_date',
+      'click sortable' => TRUE,
+      'is date' => TRUE,
+    ),
+    'filter' => array(
+      'handler' => 'views_handler_filter_string',
+    ),
+    'sort' => array(
+      'handler' => 'views_handler_sort',
+    ),
+    'argument' => array(
+      'handler' => 'views_handler_argument',
+    ),
+  );
 
-    return $data;
+  return $data;
 }
