diff --git a/enabled_modules.info b/enabled_modules.info
index f953617..4378ec1 100644
--- a/enabled_modules.info
+++ b/enabled_modules.info
@@ -1,4 +1,3 @@
-
 name = Enabled modules
 description = Show enabled, missing, and recently toggled modules.
 package = Development
@@ -6,7 +5,3 @@ core = 7.x
 
 dependencies[] = views
 dependencies[] = views_system
-
-files[] = enabled_modules.install
-files[] = enabled_modules.module
-files[] = enabled_modules.views_default.inc
diff --git a/enabled_modules.install b/enabled_modules.install
index fb76d76..6f5db7c 100644
--- a/enabled_modules.install
+++ b/enabled_modules.install
@@ -1,11 +1,12 @@
 <?php
+/**
+ * @file
+ * Installation files for enabled_modules.
+ */
 
 /**
- * @function
- * Drop the enabled_modules_system table
+ * Drop the enabled_modules_system table.
  */
 function enabled_modules_update_7102() {
   db_drop_table('enabled_modules_system');
 }
-
-
diff --git a/enabled_modules.module b/enabled_modules.module
index 3c32179..ecc3cfd 100644
--- a/enabled_modules.module
+++ b/enabled_modules.module
@@ -1,23 +1,27 @@
 <?php
-
 /**
  * @file
- * Provides a page showing all enabled modules by system name, including modules missing from the file system, and a page showing formerly enabled now disabled modules.  Also provides the operating system directory of the Drupal installation and the paths of enabled modules.
+ * Hook implementations for enabled_modules.
+ *
+ * Provides a page showing all enabled modules by system name,
+ * including modules missing from the file system, and a page showing formerly
+ * enabled now disabled modules.  Also provides the operating system directory
+ * of the Drupal installation and the paths of enabled modules.
  */
 
 /**
- * Implementation of hook_block_info().
+ * Implements hook_block_info().
  */
 function enabled_modules_block_info() {
   $blocks['demo'] = array(
     'info' => t('Key site modules'),
   );
-  
+
   return $blocks;
 }
 
 /**
- * Implementation of hook_block_configure().
+ * Implements hook_block_configure().
  */
 function enabled_modules_block_configure($delta = 0) {
   switch ($delta) {
@@ -28,7 +32,7 @@ function enabled_modules_block_configure($delta = 0) {
       $form['enabled_modules_demo_list'] = array(
         '#type' => 'checkboxes',
         '#title' => t('Select modules to list in the block'),
-        '#options' => enabled_modules_fetch_names($status = 1, $reset = TRUE),
+        '#options' => enabled_modules_fetch_names(1, TRUE),
         '#description' => t('Selected modules will be listed in the block.'),
         '#default_value' => variable_get('enabled_modules_demo_list', ''),
       );
@@ -37,7 +41,7 @@ function enabled_modules_block_configure($delta = 0) {
 }
 
 /**
- * Implementation of hook_block_save().
+ * Implements hook_block_save().
  */
 function enabled_modules_block_save($delta = 0, $edit = array()) {
   switch ($delta) {
@@ -48,49 +52,50 @@ function enabled_modules_block_save($delta = 0, $edit = array()) {
 }
 
 /**
- * Implementation of hook_block_view().
+ * Implements hook_block_view().
  */
 function enabled_modules_block_view($delta = 0) {
   switch ($delta) {
     case 'demo':
       $block['subject'] = t('Key Site Modules');
-      
+
       $status = 1;
       $modules = enabled_modules_fetch_demo($status);
-      
+
       $block['content'] = theme('enabled_modules_block_list', $modules, $status);
-      
+
       break;
   }
   return $block;
 }
 
 /**
- * Implementation of hook_help().
+ * Implements hook_help().
  */
 function enabled_modules_help($path, $arg) {
   switch ($path) {
     case 'admin/help#enabled_modules':
-      $help  = '<p>'. t('The <em>enabled modules</em> module provides various listings of the modules present within a Drupal installation as follows:') .'</p>';
-      $help .= '<ul><li>'. t('A <a href="@page">page suitable for demonstration sites</a> showing the names of enabled modules by project.', array('@page' => url('enabled_modules'))) .'</li>';
-      $help .= '<li>'. t('A <a href="@page">page for site administrators</a> showing enabled modules with links to administrative functions.', array('@page' => url('admin/reports/enabled_modules'))) .'</li>';
-      $help .= '<li>'. t('A <a href="@page">page for site administrators</a> showing disabled modules.', array('@page' => url('admin/reports/enabled_modules/disabled'))) .'</li>';
-      $help .= '<li>'. t('A <a href="@page">page for site administrators</a> showing not installed modules present in the system.', array('@page' => url('admin/reports/enabled_modules/not-installed'))) .'</li>';
-      $help .= '<li>'. t('A block configurable to show key modules used on the site.') .'</li></ul>';
+      $help  = '<p>' . t('The <em>enabled modules</em> module provides various listings of the modules present within a Drupal installation as follows:') . '</p>';
+      $help .= '<ul><li>'. t('A <a href="@page">page suitable for demonstration sites</a> showing the names of enabled modules by project.', array('@page' => url('enabled_modules'))) . '</li>';
+      $help .= '<li>' . t('A <a href="@page">page for site administrators</a> showing enabled modules with links to administrative functions.', array('@page' => url('admin/reports/enabled_modules'))) . '</li>';
+      $help .= '<li>' . t('A <a href="@page">page for site administrators</a> showing disabled modules.', array('@page' => url('admin/reports/enabled_modules/disabled'))) . '</li>';
+      $help .= '<li>' . t('A <a href="@page">page for site administrators</a> showing not installed modules present in the system.', array('@page' => url('admin/reports/enabled_modules/not-installed'))) . '</li>';
+      $help .= '<li>'. t('A block configurable to show key modules used on the site.') . '</li></ul>';
       return $help;
     case 'admin/reports/enabled_modules':
     case 'admin/reports/enabled_modules/list':
     case 'admin/reports/enabled_modules/disabled':
     case 'admin/reports/enabled_modules/not-installed':
       if (module_exists('update')) {
-        return '<p>'. t('For more information about enabled and/or available modules, see the <a href="@status_report">Status Report</a> page and the <a href="@modules_page">Modules</a> page.', array('@status_report' => url('admin/reports/status'), '@modules_page' => url('admin/build/modules'))) .'</p>';
+        return '<p>' . t('For more information about enabled and/or available modules, see the <a href="@status_report">Status Report</a> page and the <a href="@modules_page">Modules</a> page.', array('@status_report' => url('admin/reports/status'), '@modules_page' => url('admin/build/modules'))) . '</p>';
       }
       break;
-    }
+
   }
+}
 
 /**
- * Implementation of hook_permission().
+ * Implements hook_permission().
  */
 function enabled_modules_permission() {
   return array(
@@ -101,7 +106,7 @@ function enabled_modules_permission() {
 }
 
 /**
- * Implementation of hook_theme().
+ * Implements hook_theme().
  */
 function enabled_modules_theme() {
   return array(
@@ -111,7 +116,9 @@ function enabled_modules_theme() {
   );
 }
 
-// Helper functions
+/**
+ * Helper function to fetch information on modules.
+ */
 function enabled_modules_fetch_demo($status = 1, $reset = TRUE) {
   static $modules = array();
   if ($reset || !isset($modules) || empty($modules)) {
@@ -127,9 +134,12 @@ function enabled_modules_fetch_demo($status = 1, $reset = TRUE) {
   return $modules;
 }
 
+/**
+ * Helper function to fetch module names.
+ */
 function enabled_modules_fetch_names($status = 1, $reset = TRUE) {
   $module_names = array();
-  if ($reset || !isset($modules) || empty($modules)) {
+  if ($reset || !isset($modules_names) || empty($modules_names)) {
     $result = db_query("SELECT filename, name, info, bootstrap, schema_version FROM {system} WHERE type = 'module' AND status = :status ORDER BY name", array(':status' => $status));
     while ($module = $result->fetchObject()) {
       $module_names[$module->name] = $module->name;
@@ -138,44 +148,48 @@ function enabled_modules_fetch_names($status = 1, $reset = TRUE) {
   return $module_names;
 }
 
+/**
+ * Theme function for displaying block.
+ */
 function theme_enabled_modules_block_list($modules, $status = 1) {
   $output = '';
 
   foreach ($modules as $module) {
-    $output .= '<div><h3>' . l($module->name, 'http://drupal.org/project/'. $module->info['project']) .'</h3>';
-    $output .= '<div><em>'. $module->info['version'] .'</em></div>';
-    $output .= '<div>'. $module->info['description'] .'</div>';
+    $output .= '<div><h3>' . l($module->name, 'http://drupal.org/project/' . $module->info['project']) . '</h3>';
+    $output .= '<div><em>' . $module->info['version'] . '</em></div>';
+    $output .= '<div>' . $module->info['description'] . '</div>';
 
     if (isset($module->info['dependencies']) && !empty($module->info['dependencies'])) {
-      $output .='<ul><li>';
-      $output .=t('Depends on: ') . enabled_modules_array_link($module->info['dependencies']);
-      $output .='</li></ul>';
+      $output .= '<ul><li>';
+      $output .= t('Depends on: ') . enabled_modules_array_link($module->info['dependencies']);
+      $output .= '</li></ul>';
     }
     if (isset($module->info['dependents']) && !empty($module->info['dependents'])) {
-      $output .='<ul><li>';
-      $output .=t('Required by: ') . enabled_modules_array_link($module->info['dependents']);
-      $output .='</li></ul>';
+      $output .= '<ul><li>';
+      $output .= t('Required by: ') . enabled_modules_array_link($module->info['dependents']);
+      $output .= '</li></ul>';
     }
     $output .= '</div>';
   }
   return $output;
 }
 
+/**
+ * Converts an array to a list of links.
+ */
 function enabled_modules_array_link($array) {
   foreach ($array as $key => $link) {
-    $link = l($link, 'http://drupal.org/project/'. $link);
+    $link = l($link, 'http://drupal.org/project/' . $link);
     $array[$key] = $link;
   }
   return implode(', ', $array);
 }
 
 /**
- * @function
- * Implements hook_views_api
+ * Implements hook_views_api().
  */
 function enabled_modules_views_api() {
   return array(
     'api' => 3,
   );
 }
-
diff --git a/enabled_modules.views_default.inc b/enabled_modules.views_default.inc
index 30949fe..8f4df9e 100644
--- a/enabled_modules.views_default.inc
+++ b/enabled_modules.views_default.inc
@@ -1,13 +1,17 @@
 <?php
+/**
+ * @file
+ * Views hook implementations for enabled_modules.
+ */
 
 /**
- * Implementation of hook_views_default_views().
+ * Implements hook_views_default_views().
  */
 function enabled_modules_views_default_views() {
   /*
    * View 'enabled_modules_list'
    */
-  $view = new view;
+  $view = new view();
   $view->name = 'enabled_modules';
   $view->description = '';
   $view->tag = 'default';
@@ -127,7 +131,7 @@ function enabled_modules_views_default_views() {
   /*
    * View 'enabled_modules_admin'
    */
-  $view = new view;
+  $view = new view();
   $view->name = 'enabled_modules_admin';
   $view->description = '';
   $view->tag = 'default';
@@ -378,4 +382,3 @@ function enabled_modules_views_default_views() {
 
   return $views;
 }
-
