diff --git a/sass.admin.inc b/sass.admin.inc
index 8063d5b..396c1fd 100644
--- a/sass.admin.inc
+++ b/sass.admin.inc
@@ -1,22 +1,28 @@
 <?php
+/**
+ * Administration functions for the SASS module.
+ */

+/**
+ * The module configuration form.
+ */
 function sass_settings_form()
 {
   $form['sass_development_mode'] = array(
-    '#type'=>'checkbox',
-    '#title'=>t('Development Mode'),
-    '#description'=>t('Enable development mode. All CSS files with corresponding SCSS/SASS files will be rebuilt on each request.'),
-    '#default_value'=>variable_get('sass_development_mode', true),
+    '#type'          => 'checkbox',
+    '#title'         => t('Development Mode'),
+    '#description'   => t('Enable development mode. All CSS files with corresponding SCSS/SASS files will be rebuilt on each request.'),
+    '#default_value' => variable_get('sass_development_mode', true),
   );
-
+
   $form['sass_show_development_mode_warning'] = array(
-    '#type'=>'checkbox',
-    '#title'=>t('Show development mode warning'),
-    '#description'=>t('Uncheck this to stop showing the warning about being in development mode.'),
-    '#default_value'=>variable_get('sass_show_development_mode_warning', true),
+    '#type'          => 'checkbox',
+    '#title'         => t('Show development mode warning'),
+    '#description'   => t('Uncheck this to stop showing the warning about being in development mode.'),
+    '#default_value' => variable_get('sass_show_development_mode_warning', true),
   );
-
+
   $form = system_settings_form($form);
-
+
   return $form;
 }
diff --git a/sass.module b/sass.module
index 5a0b7a1..1d9281f 100644
--- a/sass.module
+++ b/sass.module
@@ -1,54 +1,61 @@
 <?php
+/**
+ * Main file for the SASS module.
+ */

-// Implementation of hook_menu
-function sass_menu()
-{
+/**
+ * Implements hook_menu().
+ */
+function sass_menu() {
   $items['admin/settings/sass'] = array(
-    'title'=>'SASS/SCSS',
-    'description'=>t('Configure the behaviour of the SaSS/SCSS library'),
-    'page callback'=>'drupal_get_form',
-    'page arguments'=>array('sass_settings_form'),
+    'title'            => 'SASS/SCSS',
+    'description'      => t('Configure the behaviour of the SaSS/SCSS library'),
+    'page callback'    => 'drupal_get_form',
+    'page arguments'   => array('sass_settings_form'),
     'access arguments' => array('administer site configuration'),
-    'file'=>'sass.admin.inc',
+    'file'             => 'sass.admin.inc',
   );
-
+
   return $items;
 }

-function sass_preprocess_page(&$variables)
-{
-  # Bring in the theme info
-	global $theme_info;
+/**
+ * Override for theme_preprocess_page().
+ */
+function sass_preprocess_page(&$variables) {
+  // Bring in the theme info
+  global $theme_info;

-  # The global $theme_path variable points for some reason points
-  # to the base theme if the theme is a subtheme, ergo
+  // The global $theme_path variable points for some reason points to the base
+  // theme if the theme is a subtheme,
   $theme_path = drupal_get_path('theme', $theme_info->name);

-  # Pull in the
   include_once dirname(__FILE__) . '/phamlp/sass/SassParser.php';
-  $sass = new SassParser(array('style'=>'compact'));
-
-  foreach ($theme_info->stylesheets['all'] as &$stylesheet)
-  {
-
-    $scss = str_replace('.css','.scss',$stylesheet);
-
-    # If we're in development mode clear any CSS files that have a cooresponding SCSS file.
-    if (variable_get('sass_development_mode', true) && file_exists($scss))
-    {
-      if (variable_get('sass_show_development_mode_warning', true))
-      {
-        drupal_set_message(t('Your SASS / SCSS stylesheets are currently being rebuilt on every request. Ensure you disable <a href="!link">development mode</a> for production sites.', array('!link'=>url('admin/settings/phamlp/sass'))),'warning');
+  $sass = new SassParser(array('style' => 'compact'));
+
+  foreach ($theme_info->stylesheets['all'] as &$stylesheet) {
+
+    $scss = str_replace('.css', '.scss', $stylesheet);
+
+    // If we're in development mode clear any CSS files that have a
+    // corresponding SCSS file.
+    if (variable_get('sass_development_mode', TRUE) && file_exists($scss)) {
+      if (variable_get('sass_show_development_mode_warning', TRUE)) {
+        drupal_set_message(
+          t(
+            'Your SASS / SCSS stylesheets are currently being rebuilt on every request. Ensure you disable !link for production sites.',
+            array('!link' => l(t('development mode'), 'admin/settings/phamlp/sass'))
+          ),
+          'warning'
+        );
       }
-
-      if (file_exists($stylesheet))
-      {
+
+      if (file_exists($stylesheet)) {
         unlink($stylesheet);
       }
     }
-
-    if (!file_exists($stylesheet) && file_exists($scss))
-    {
+
+    if (!file_exists($stylesheet) && file_exists($scss)) {
       file_put_contents($stylesheet, $sass->toCss($scss));
     }
   }
