diff --git a/contrib/fb_example.install b/contrib/fb_example.install
index af7ba28..15aed01 100644
--- a/contrib/fb_example.install
+++ b/contrib/fb_example.install
@@ -6,12 +6,21 @@
  */
 
 
-// Set weight so that fb_example comes after fb_user.
+/**
+ * Implements hook_install().
+ *
+ * Set weight so that fb_example comes after fb_user.
+ */
 function fb_example_install() {
-  // So we fall after og_vocab and og
+  // So we fall after og_vocab and og.
   db_query("UPDATE {system} SET weight = 3 WHERE name='fb_example'");
 }
 
+/**
+ * Implements hook_update_N().
+ *
+ * Set weight so that fb_example comes after fb_user.
+ */
 function fb_example_update_1() {
   $ret = array();
   $ret[] = update_sql("UPDATE {system} SET weight = 3 WHERE name='fb_example'");
diff --git a/contrib/fb_example.module b/contrib/fb_example.module
index c90be54..f796aec 100644
--- a/contrib/fb_example.module
+++ b/contrib/fb_example.module
@@ -1,6 +1,7 @@
 <?php
 /**
  * @file
+ * Example customizations to modules/fb.
  *
  * The code in this module provides example of common customizations to
  * modules/fb.  The code found here is used on http://drupalforfacebook.org.
@@ -18,7 +19,8 @@
 function fb_example_link($type, $object, $teaser = FALSE) {
   if ($type == 'node' && !$teaser) {
     $items = array();
-    if (variable_get('fb_example_link_add_like', TRUE)) { // Switch to control this behavior.
+    // Switch to control this behavior.
+    if (variable_get('fb_example_link_add_like', TRUE)) {
       $url = fb_scrub_urls(url('node/' . $object->nid, array('absolute' => TRUE)));
       $items['dff_like'] = array(
         'title' => "<fb:like send=\"true\" ref=\"node/$object->nid\" href={$url}></fb:like>",
@@ -90,7 +92,6 @@ function fb_example_nodeapi(&$node, $op, $a3 = NULL, $a4 = NULL) {
       */
       if ($logo_path = theme_get_setting('logo_path')) {
         $url = url($logo_path, array('absolute' => TRUE));
-        //dpm($logo_path, "logo_path is $logo_path and url is $url");
         $attachment['media'][] = array(
           'type' => 'image',
           'src' => $url,
@@ -129,7 +130,7 @@ function fb_example_nodeapi(&$node, $op, $a3 = NULL, $a4 = NULL) {
 }
 
 /**
- * Implementation of hook_comment().
+ * Implements hook_comment().
  *
  * Publish to facebook Walls when users submit comments.
  */
@@ -138,7 +139,6 @@ function fb_example_comment(&$a1, $op) {
     $comment_url = url('node/' . $a1['nid'], array('absolute' => TRUE, 'fragment' => 'comment-' . $a1['cid']));
 
     if (module_exists('fb_stream') && $a1['stream_publish']) {
-      //dpm($a1, "fb_example_comment, publishing to stream");
       $node = node_load($a1['nid']);
 
       // http://wiki.developers.facebook.com/index.php/Attachment_(Streams)
@@ -146,12 +146,11 @@ function fb_example_comment(&$a1, $op) {
         'name' => $a1['subject'],
         'href' => $comment_url,
         'description' => $a1['comment'],
-        //'properties' => array(t('In reply to') => array('text' => $node->title, 'href' => url("node/" . $node->nid, array('absolute' => TRUE)))),
+        // 'properties' => array(t('In reply to') => array('text' => $node->title, 'href' => url("node/" . $node->nid, array('absolute' => TRUE)))),
       );
 
       if ($logo_path = theme_get_setting('logo_path')) {
         $url = url($logo_path, array('absolute' => TRUE, 'fb_canvas' => FALSE));
-        //dpm($logo_path, "logo_path is $logo_path and url is $url");
         $attachment['media'][] = array(
           'type' => 'image',
           'src' => $url,
@@ -162,13 +161,15 @@ function fb_example_comment(&$a1, $op) {
       $user_message = t('Check out my latest comment on !site...',
                         array('!site' => variable_get('site_name', t('my Drupal for Facebook powered site'))));
       $actions = array();
-      $actions[] = array('text' => t('Read More'),
-                         'href' => url('node/' . $a1['nid'], array('absolute' => TRUE)),
+      $actions[] = array(
+        'text' => t('Read More'),
+        'href' => url('node/' . $a1['nid'], array('absolute' => TRUE)),
       );
-      fb_stream_publish_dialog(array('message' => $user_message,
-                                     'attachment' => $attachment,
-                                     'action_links' => $actions,
-                               ));
+      fb_stream_publish_dialog(array(
+        'message' => $user_message,
+        'attachment' => $attachment,
+        'action_links' => $actions,
+      ));
     }
   }
 }
@@ -192,7 +193,8 @@ function fb_example_fb_required_perms_alter(&$perms) {
 /**
  * Implements hook_fb().
  *
- * This hook provides an opportunity to customize the behavior of Facebook Applications.
+ * This hook provides an opportunity to customize the behavior of Facebook
+ * Applications.
  *
  * @param $op
  *   Indicates what operation is currently being performed, or which behavior
@@ -205,7 +207,8 @@ function fb_example_fb_required_perms_alter(&$perms) {
  *     application.
  *
  * @param $data
- *   Associative array of information specific to this operation. Usually, but not always, contains:
+ *   Associative array of information specific to this operation. Usually, but
+ *   not always, contains:
  *   - 'fb' - The API provided by the facebook-php-sdk.
  *   - 'fb_app' - The data about this application stored by fb_app.module.
  *   - 'fbu' - If the current user is known, their facebook id.
@@ -224,18 +227,20 @@ function fb_example_fb($op, $data, &$return) {
   $fb_app = isset($data['fb_app']) ? $data['fb_app'] : NULL;
   $fb = isset($data['fb']) ? $data['fb'] : NULL;
 
-  // Uncomment next line to figure out when this hook is called and what it is passed.
-  //dpm(func_get_args(), "fb_example_fb($op) called"); // debug
-
+  // Uncomment next line to figure out when this hook is called and what it is
+  // passed.
+  // dpm(func_get_args(), "fb_example_fb($op) called"); // debug.
   if ($op == FB_OP_AJAX_EVENT) {
-    // We get FB_OP_AJAX_EVENT when fb.js calls us in reponse to a javascript event.
+    // We get FB_OP_AJAX_EVENT when fb.js calls us in reponse to a javascript
+    // event.
     if ($data['event_type'] == 'edge.create' && variable_get('fb_example_like_thanks', FALSE)) {
       // Facebook calls this event 'edge.create', because there's a new 'edge'
       // in the open graph.
       drupal_set_message(t('Thanks for clicking Like!'));
-      // reloading allows user to see message.  This example is contrived,
+      // Reloading allows user to see message.  This example is contrived,
       // there's no real reason to reload page here, and it prevents users
-      // from adding a comment.  In practice, you could put some other javascript here.
+      // from adding a comment.  In practice, you could put some other
+      // javascript here.
       $return[] = "FB_JS.reload();";
     }
     if ($data['event_type'] == 'session_change' && variable_get('fb_example_session_change_redirect', FALSE)) {
@@ -252,11 +257,10 @@ function fb_example_fb($op, $data, &$return) {
           $return[] = "FB_JS.reload('$url');";
         }
       }
+      // The user has clicked the connect button and that results in a new
+      // user being created.  Note this will work only when fb_example.module
+      // has heavier weight than fb_user.module.  See fb_example.install.
       elseif ($GLOBALS['fb_example_new_user']) {
-        // The user has clicked the connect button and that results in a new
-        // user being created.  Note this will work only when fb_example.module
-        // has heavier weight than fb_user.module.  See fb_example.install.
-
         // Send the user to their edit page.
         $url = url('user/' . $GLOBALS['user']->uid . '/edit',
                    array('absolute' => TRUE, 'fb_canvas' => fb_is_canvas()));
@@ -295,7 +299,6 @@ function fb_example_fb($op, $data, &$return) {
  *   variable, and not return it.  Some operations return an array of data,
  *   which may be collaboratively built by multiple implementations of this
  *   hook.
- *
  */
 function fb_example_fb_user($op, $data, &$return) {
   $fb_app = isset($data['fb_app']) ? $data['fb_app'] : NULL;
@@ -334,7 +337,16 @@ function fb_example_preprocess_page(&$variables) {
     include_once drupal_get_path('module', 'fb') . '/fb.process.inc';
 
     // Process links in these regions.
-    foreach (array('content', 'header', 'footer', 'left', 'preface_first', 'preface_middle', 'preface_last') as $region) {
+    $regions = array(
+      'content',
+      'header',
+      'footer',
+      'left',
+      'preface_first',
+      'preface_middle',
+      'preface_last',
+    );
+    foreach ($regions as $region) {
       $variables[$region] = fb_process($variables[$region], array(
                                          'add_target' => '_top',
                                          'absolute_links' => TRUE,
@@ -365,4 +377,4 @@ function fb_example_init() {
       }
     }
   }
-}
\ No newline at end of file
+}
