diff --git a/drealty.daemon.php b/drealty.daemon.php
index c405d28..57947a5 100644
--- a/drealty.daemon.php
+++ b/drealty.daemon.php
@@ -1,4 +1,8 @@
 <?php
+/**
+ * @file
+ * dRealty's import functionality.
+ */
 
 define('GEOCODER_DUMMY_WKT', 'POINT(0, 0)');
 
diff --git a/drealty.info.inc b/drealty.info.inc
index 8cf5f6c..2bfba0c 100644
--- a/drealty.info.inc
+++ b/drealty.info.inc
@@ -1,5 +1,12 @@
 <?php
+/**
+ * @file
+ * Handles properties for dRealty entities.
+ */
 
+/**
+ * Implements hook_property_info_alter().
+ */
 function drealty_entity_property_info_alter(&$entity_info) {
 
-}
\ No newline at end of file
+}
diff --git a/drealty.install b/drealty.install
index c5dc696..ba1ec92 100644
--- a/drealty.install
+++ b/drealty.install
@@ -1,5 +1,12 @@
 <?php
+/**
+ * @file
+ * Installation functions for dRealty.
+ */
 
+/**
+ * Implements hook_install().
+ */
 function drealty_install() {
   if (!drupal_installation_attempted()) {
     $type = entity_create('drealty_listing_type', array(
@@ -13,6 +20,9 @@ function drealty_install() {
   menu_rebuild();
 }
 
+/**
+ * Implements hook_requirements().
+ */
 function drealty_requirements($phase) {
 
   $requirements = array();
@@ -45,6 +55,9 @@ function drealty_requirements($phase) {
   return $requirements;
 }
 
+/**
+ * Implements hook_uninstall().
+ */
 function drealty_uninstall() {
 
   global $conf;
@@ -81,6 +94,9 @@ function drealty_uninstall() {
   menu_rebuild();
 }
 
+/**
+ * Implements hook_schema().
+ */
 function drealty_schema() {
 
   // connections table
@@ -292,7 +308,7 @@ function drealty_schema() {
 }
 
 /**
- * Add two new fields to keep track of photo modification timestamp
+ * Add two new fields to keep track of photo modification timestamp.
  */
 function drealty_update_7300(&$sandbox) {
   db_add_field('drealty_listing', 'rets_photo_modification_timestamp', array('type' => 'varchar', 'length' => 128, 'not null' => FALSE, 'default' => NULL, 'description' => 'RETS field that indicates wether image data has been modified.'));
@@ -302,7 +318,7 @@ function drealty_update_7300(&$sandbox) {
 
 
 /**
- * Add fields to handle expired listings 
+ * Add fields to handle expired listings.
  */
 function drealty_update_7301(&$sandbox) {
   db_add_field('drealty_listing', 'active', array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 1));
@@ -311,8 +327,8 @@ function drealty_update_7301(&$sandbox) {
 
 /**
  * Adjust length of 'rets_key' field to hold more data.
- * 
- * See: http://drupal.org/node/1514350
+ *
+ * @see http://drupal.org/node/1514350
  */
 
 function drealty_update_7302(&$sandbox) {
@@ -328,4 +344,4 @@ function drealty_update_7302(&$sandbox) {
     'not null' => FALSE,
     'description' => 'A unique identifier for this record from the source system. Typically this is the MLS #, however systems like Interealty use a sysid field. Select the apporpriate field.',
   ));
-}
\ No newline at end of file
+}
diff --git a/drealty.module b/drealty.module
index 916af9c..a1ea633 100644
--- a/drealty.module
+++ b/drealty.module
@@ -178,11 +178,11 @@ function drealty_menu_local_tasks_alter(&$data, $router_item, $root_path) {
 }
 
 /**
+ * Form builder for updating a single listing.
  *
  * @param type $form
  * @param array $form_state
  * @param drealtyListing $listing
- * @return type 
  */
 function drealty_update_single_listing($form, &$form_state, $listing = NULL) {
 
@@ -198,6 +198,9 @@ function drealty_update_single_listing($form, &$form_state, $listing = NULL) {
   return $form;
 }
 
+/**
+ * Submit callback for the single listing update form.
+ */
 function drealty_update_single_listing_submit($form, &$form_state) {
 
   $listing = $form_state['listing'];
@@ -211,6 +214,9 @@ function drealty_update_single_listing_submit($form, &$form_state) {
   $form_state['redirect'] = $listing->path();
 }
 
+/**
+ * Implements hook_admin_paths_alter().
+ */
 function drealty_admin_paths_alter(&$paths) {
   $paths['drealty_listing/add'] = TRUE;
   $paths['drealty_listing/add/*'] = TRUE;
@@ -420,7 +426,9 @@ function drealty_search_api_multitext_getter_callback($item, $options = array(),
 // Listing Functions
 // ***********************************************************************************************************  //
 
-
+/**
+ * Listing admin access callback.
+ */
 function drealty_access($op, $entity = NULL, $type = NULL, $account = NULL) {
 
   $rights = &drupal_static(__FUNCTION__, array());
@@ -545,6 +553,9 @@ function drealty_listing_uri(DrealtyListing $listing) {
   return array('path' => 'drealty_listing/' . $listing->id);
 }
 
+/**
+ * Listing entity admin access callback.
+ */
 function drealty_listing_access($op, $listing = NULL, $account = NULL) {
   if (user_access('administer drealty_listings', $account)) {
     return TRUE;
@@ -566,6 +577,9 @@ function drealty_listing_access($op, $listing = NULL, $account = NULL) {
   return FALSE;
 }
 
+/**
+ * Implements hook_drelty_listing_access().
+ */
 function drealty_drealty_listing_access($op, $listing = NULL, $account = NULL) {
   if (isset($listing) && ($type_name = $listing->type) && $op != 'delete') {
     if (user_access("$op any $type_name drealty_listing", $account)) {
@@ -592,6 +606,11 @@ function drealty_connection_access($op, $type = NULL, $account = NULL) {
 // ***********************************************************************************************************  //
 
 
+/**
+ * Implements hook_form_FORMID_alter().
+ *
+ * @see field_ui_field_overview_form()
+ */
 function drealty_form_field_ui_field_overview_form_alter(&$form, &$form_state, $form_id) {
   $entity_types = array('drealty_listing', 'drealty_agent', 'drealty_openhouse', 'drealty_office');
   if (in_array($form['#entity_type'], $entity_types)) {
@@ -599,6 +618,9 @@ function drealty_form_field_ui_field_overview_form_alter(&$form, &$form_state, $
   }
 }
 
+/**
+ * Implements hook_field_delete_instance().
+ */
 function drealty_field_delete_instance($field) {
   $entity_types = array('drealty_listing', 'drealty_agent', 'drealty_openhouse', 'drealty_office');
   if (in_array($field['entity_type'], $entity_types)) {
@@ -613,6 +635,11 @@ function drealty_field_delete_instance($field) {
   }
 }
 
+/**
+ * Implements hook_form_FORMID_alter().
+ *
+ * @see field_ui_field_edit_form()
+ */
 function drealty_form_field_ui_field_edit_form_alter(&$form, &$form_state, $form_id) {
 
   $entity_types = array('drealty_listing', 'drealty_agent', 'drealty_openhouse', 'drealty_office');
@@ -634,6 +661,11 @@ function drealty_form_field_ui_field_edit_form_alter(&$form, &$form_state, $form
   }
 }
 
+/**
+ * Alters geofield edit forms.
+ *
+ * @see drealty_form_field_ui_field_edit_form_alter()
+ */
 function drealty_form_field_ui_field_edit_form_geofield(&$form, &$form_state) {
   $form['#submit'][] = 'drealty_field_ui_field_edit_form_geofield_submit';
 
@@ -678,6 +710,11 @@ function drealty_form_field_ui_field_edit_form_geofield(&$form, &$form_state) {
   $form['instance']['drealty']['hash_exclude'] = array('#type' => 'checkbox', '#title' => t('Exclude this field from the update hash.'), '#default_value' => isset($field_mappings[$form['#instance']['field_name']]->hash_exclude) ? $field_mappings[$form['#instance']['field_name']]->hash_exclude : FALSE);
 }
 
+/**
+ * Alters addressfield edit forms.
+ *
+ * @see drealty_form_field_ui_field_edit_form_alter()
+ */
 function drealty_form_field_ui_field_edit_form_addressfield(&$form, &$form_state) {
 
   $form['instance']['drealty'] = array('#type' => 'fieldset', '#title' => t('Drealty Field Mapping'), '#weight' => -15);
@@ -757,6 +794,11 @@ function drealty_form_field_ui_field_edit_form_addressfield(&$form, &$form_state
   $form['instance']['drealty']['hash_exclude'] = array('#type' => 'checkbox', '#title' => t('Exclude this field from the update hash.'), '#default_value' => isset($field_mappings[$form['#instance']['field_name']]->hash_exclude) ? $field_mappings[$form['#instance']['field_name']]->hash_exclude : FALSE);
 }
 
+/**
+ * Default field edit form alterer.
+ *
+ * @see drealty_form_field_ui_field_edit_form_alter()
+ */
 function drealty_form_field_ui_field_edit_form_default(&$form, &$form_state) {
   $form['#submit'][] = 'drealty_field_ui_field_edit_form_submit';
 
@@ -796,6 +838,9 @@ function drealty_form_field_ui_field_edit_form_default(&$form, &$form_state) {
   $form['instance']['drealty']['hash_exclude'] = array('#type' => 'checkbox', '#title' => t('Exclude this field from the update hash.'), '#default_value' => isset($field_mappings[$form['#instance']['field_name']]->hash_exclude) ? $field_mappings[$form['#instance']['field_name']]->hash_exclude : FALSE);
 }
 
+/**
+ * Submit handler for geofield edit forms.
+ */
 function drealty_field_ui_field_edit_form_geofield_submit($form, &$form_state) {
   $mappings = $form_state['values']['instance']['drealty']['mappings'];
   $hash_exclude = $form_state['values']['instance']['drealty']['hash_exclude'];
@@ -815,6 +860,9 @@ function drealty_field_ui_field_edit_form_geofield_submit($form, &$form_state) {
   }
 }
 
+/**
+ * Submit function for addressfield edit forms.
+ */
 function drealty_field_ui_field_edit_form_address_submit($form, &$form_state) {
   $mappings = $form_state['values']['instance']['drealty']['mappings'];
   $hash_exclude = $form_state['values']['instance']['drealty']['hash_exclude'];
@@ -847,6 +895,9 @@ function drealty_field_ui_field_edit_form_address_submit($form, &$form_state) {
   }
 }
 
+/**
+ * Default submit handler for field edit forms.
+ */
 function drealty_field_ui_field_edit_form_submit($form, &$form_state) {
 
   $mappings = $form_state['values']['instance']['drealty']['mappings'];
@@ -870,6 +921,9 @@ function drealty_field_ui_field_edit_form_submit($form, &$form_state) {
   }
 }
 
+/**
+ * Theme function for field mapping forms.
+ */
 function theme_drealty_field_mapping(&$variables) {
   $header = array('Connection', 'RETS Class', 'RETS Field');
   $rows = array();
@@ -991,14 +1045,14 @@ function drealty_field_ui_field_overview_form_submit($form, &$form_state) {
 }
 
 /**
- * Implementation of hook_ctools_plugin_api().
+ * Implements hook_ctools_plugin_api().
  */
 function drealty_ctools_plugin_api() {
   return array('version' => 1);
 }
 
 /**
- * Implementation of hook_ctools_plugin_dierctory() to let the system know
+ * Implements hook_ctools_plugin_dierctory() to let the system know
  * we implement plugins.
  */
 function drealty_ctools_plugin_directory($module, $plugin) {
@@ -1006,10 +1060,10 @@ function drealty_ctools_plugin_directory($module, $plugin) {
 }
 
 /**
- * Implements hook_ctools_plugin_type
+ * Implements hook_ctools_plugin_type().
  */
 function drealty_ctools_plugin_type() {
   return array(
     'geocoder_handler' => array(),
   );
-}
\ No newline at end of file
+}
diff --git a/drush/drealty.drush.inc b/drush/drealty.drush.inc
index f37e718..466ad6e 100644
--- a/drush/drealty.drush.inc
+++ b/drush/drealty.drush.inc
@@ -1,9 +1,12 @@
 <?php
 
 /**
- *
- * @file drealty.drush.inc
- *
+ * @file
+ * Drush integration for dRealty.
+ */
+
+/**
+ * Implements hook_drush_command().
  */
 function drealty_drush_command() {
   $items = array();
@@ -31,7 +34,7 @@ function drealty_drush_command() {
 }
 
 /**
- * Implementation of hook_drush_help().
+ * Implements hook_drush_help().
  *
  * This function is called whenever a drush user calls
  * 'drush help <name-of-command>'
@@ -121,4 +124,4 @@ function drush_drealty_rets_flush() {
     }
     unset($existing_items);
   }
-}
\ No newline at end of file
+}
diff --git a/includes/drealty.admin.inc b/includes/drealty.admin.inc
index a39c4e3..2d5ffc6 100644
--- a/includes/drealty.admin.inc
+++ b/includes/drealty.admin.inc
@@ -1,5 +1,12 @@
 <?php
-
+/**
+ * @file
+ * dRealty admin page forms and callbacks.
+ */
+
+/**
+ * Form builder for the settings form.
+ */
 function drealty_settings_form($form, &$form_state) {
 
   $form['general_settings'] = array('#type' => 'fieldset', '#title' => 'General Settings', '#collapsible' => TRUE, '#collapsed' => FALSE);
@@ -94,6 +101,11 @@ function drealty_settings_form($form, &$form_state) {
   return $form;
 }
 
+/**
+ * Submit handler for the settings form
+ *
+ * @see drealty_settings_form()
+ */
 function drealty_settings_form_submit($form, &$form_state) {
 
   $dc = new drealtyConnection();
@@ -129,6 +141,9 @@ function theme_drealty_general_setting_form(&$variables) {
   return $output;
 }
 
+/**
+ * Autocomplete callback for offices.
+ */
 function drealty_office_autocomplete_callback($conid, $string) {
   if ($conid == NULL) {
     exit();
@@ -157,4 +172,4 @@ function drealty_office_autocomplete_callback($conid, $string) {
   }
   print drupal_json_encode($matches);
   exit();
-}
\ No newline at end of file
+}
diff --git a/includes/drealty.connection.admin.inc b/includes/drealty.connection.admin.inc
index 1099641..64ac597 100644
--- a/includes/drealty.connection.admin.inc
+++ b/includes/drealty.connection.admin.inc
@@ -1,4 +1,9 @@
 <?php
+/**
+ * @file
+ * dRealty RETS connection UI controller.
+ */
+
 
 class DrealtyConnectionUIController extends EntityDefaultUIController {
 
@@ -122,10 +127,16 @@ class DrealtyConnectionUIController extends EntityDefaultUIController {
 
 }
 
+/**
+ * Title callback for listing classes.
+ */
 function drealty_resource_configure_title_callback($class) {
   return "Configure {$class->standardname}";
 }
 
+/**
+ * Title callback for drealty resources.
+ */
 function drealty_resource_overview_title_callback($type) {
   switch ($type) {
     case 'drealty_listing':
@@ -146,6 +157,9 @@ function drealty_resource_overview_title_callback($type) {
   return $title;
 }
 
+/**
+ * Form builder for the connection form.
+ */
 function drealty_connection_entity_edit_form($form, &$form_state, drealtyConnectionEntity $connection) {
   $form['conid'] = array('#type' => 'value', '#value' => $connection->conid);
 
@@ -268,6 +282,8 @@ function drealty_connection_entity_form($form, &$form_state, $connection, $op =
 
 /**
  * Form API submit callback for the type form.
+ *
+ * @see drealty_concnection_entity_form()
  */
 function drealty_connection_entity_form_submit(&$form, &$form_state) {
   $dmealty_connection = entity_ui_form_submit_build_entity($form, $form_state);
@@ -275,6 +291,9 @@ function drealty_connection_entity_form_submit(&$form, &$form_state) {
   $form_state['redirect'] = 'admin/drealty/connections';
 }
 
+/**
+ * Form builder for the connection activation form.
+ */
 function drealty_activate_connection_form($form, &$form_state, $connection = NULL) {
 
   $form_state['connection'] = $connection;
@@ -331,6 +350,11 @@ function drealty_activate_connection_form($form, &$form_state, $connection = NUL
   return $form;
 }
 
+/**
+ * Submit handler for activating connections.
+ *
+ * @see drealty_activate_connection_form()
+ */
 function drealty_activate_connection_form_submit($form, &$form_state) {
 
   $connection = $form_state['connection'];
@@ -340,12 +364,20 @@ function drealty_activate_connection_form_submit($form, &$form_state) {
   $form_state['redirect'] = 'admin/drealty/connections';
 }
 
+/**
+ * Page callback for deactivating connections.
+ */
 function drealty_deactivate_connection(drealtyConnectionEntity $connection = NULL) {
   $connection->active = FALSE;
   $connection->save();
   drupal_goto('admin/drealty/connections');
 }
 
+/**
+ * Confirmation form for deleting connections.
+ *
+ * @see drealty_connection_delete_form()
+ */
 function drealty_connection_delete_form($form, &$form_state, drealtyConnectionEntity $connection) {
   $form_state['connection'] = $connection;
 
@@ -356,6 +388,11 @@ function drealty_connection_delete_form($form, &$form_state, drealtyConnectionEn
   return $form;
 }
 
+/**
+ * Submit handler for deleting connections.
+ *
+ * @see drealty_connection_delete_form()
+ */
 function drealty_connection_delete_form_submit($form, &$form_state) {
 
   $connection = new drealtyConnectionEntity();
@@ -370,10 +407,19 @@ function drealty_connection_delete_form_submit($form, &$form_state) {
   $form_state['redirect'] = 'admin/drealty/connections';
 }
 
+/**
+ * Utility function to get the connection deletion form.
+ *
+ * @param drealtyConnectionEntity $connection
+ *   The connection to generate a form for.
+ */
 function drealty_connection_delete_form_wrapper(drealtyConnectionEntity $connection = NULL) {
   return drupal_get_form('drealty_connection_delete_form', $connection);
 }
 
+/**
+ * Form builder for picking a resource type.
+ */
 function drealty_select_resource_type($form, &$form_state) {
   $connection = $form_state['connection'];
   $entity_type = $form_state['entity_type'];
@@ -401,6 +447,9 @@ function drealty_select_resource_type($form, &$form_state) {
   drupal_set_message(t('The resource type selection has been saved.'));
 }
 
+/**
+ * Form builder for resource overviews.
+ */
 function drealty_resource_overview_form($form, &$form_state, drealtyConnectionEntity $connection = NULL, $entity_type = NULL) {
 
 
@@ -506,6 +555,11 @@ function drealty_resource_overview_form($form, &$form_state, drealtyConnectionEn
   return $form;
 }
 
+/**
+ * Submt handler for the resource overview form.
+ *
+ * @see drealty_resource_overview_form()
+ */
 function drealty_resource_overview_form_submit($form, &$form_state) {
 
   $connection = $form_state['connection'];
@@ -539,6 +593,9 @@ function drealty_resource_overview_form_submit($form, &$form_state) {
   drupal_set_message(t('The Configuration options have been Saved.'));
 }
 
+/**
+ * Form builder for configuring a resource.
+ */
 function drealty_resource_configure_form($form, &$form_state, drealtyConnectionEntity $connection = NULL, $entity_type = NULL, $class = NULL) {
 
 
@@ -937,6 +994,11 @@ function drealty_resource_configure_form($form, &$form_state, drealtyConnectionE
   return $form;
 }
 
+/**
+ * Validation handler for the resource configuration form.
+ *
+ * @see drealty_resource_configure_form()
+ */
 function drealty_resource_configure_form_validate($form, &$form_state) {
   $connection = $form_state['connection'];
   $entity_type = $form_state['entity_type'];
@@ -961,6 +1023,11 @@ function drealty_resource_configure_form_validate($form, &$form_state) {
   }
 }
 
+/**
+ * Submit handler for the resource configuration form.
+ *
+ * @see drealty_resource_configure_form()
+ */
 function drealty_resource_configure_form_submit($form, &$form_state) {
 
   $entity_type = $form_state['entity_type'];
@@ -1037,6 +1104,11 @@ function drealty_resource_configure_form_submit($form, &$form_state) {
   drupal_set_message('Configuration options have been saved.');
 }
 
+/**
+ * Submit handler for testing manual queries.
+ *
+ * @see drealty_resource_configure_form()
+ */
 function drealty_test_manual_query($form, &$form_state) {
 
   drupal_set_message("Testing the DMQL Query.");
@@ -1080,6 +1152,9 @@ function drealty_test_manual_query($form, &$form_state) {
 //  cache_clear_all('drealty_classes_', 'cache', TRUE);
 }
 
+/**
+ * Theme function for the field configuration form.
+ */
 function theme_drealty_field_config_form(&$variables) {
   $header = array('System Name', 'Standard Name', 'Long Name', 'Data Type', 'Interpretation', 'Operation');
   $rows = array();
@@ -1100,6 +1175,9 @@ function theme_drealty_field_config_form(&$variables) {
   return $output;
 }
 
+/**
+ * Theme function for the class form.
+ */
 function theme_drealty_classes_form(&$variables) {
   $header = array('System Name', 'Description', 'Enabled', 'Lifetime', 'Actions');
   $rows = array();
@@ -1118,6 +1196,9 @@ function theme_drealty_classes_form(&$variables) {
   return $output;
 }
 
+/**
+ * Theme function for the fields form.
+ */
 function theme_drealty_fields_form(&$variables) {
   $header = array('System Field', 'MLS Field Mapping');
   $rows = array();
diff --git a/includes/drealty.connection.inc b/includes/drealty.connection.inc
index 6bedfcf..873cd31 100644
--- a/includes/drealty.connection.inc
+++ b/includes/drealty.connection.inc
@@ -1,5 +1,15 @@
 <?php
-
+/**
+ * @file
+ * dRealty connection and connection entity classes.
+ */
+
+/**
+ * Save a connection entity.
+ *
+ * @param drealtyConnectionEntity $connection
+ *   The connection entity to save.
+ */
 function drealty_connection_entity_save(drealtyConnectionEntity $connection) {
   return $connection->save();
 }
diff --git a/includes/drealty.listing.admin.inc b/includes/drealty.listing.admin.inc
index 11fdee1..8965194 100644
--- a/includes/drealty.listing.admin.inc
+++ b/includes/drealty.listing.admin.inc
@@ -1,4 +1,8 @@
 <?php
+/**
+ * @file
+ * dRealty listing UI controllers.
+ */
 
 class DrealtyListingUIController extends EntityDefaultUIController {
 
@@ -124,6 +128,9 @@ class DrealtyListingUIController extends EntityDefaultUIController {
 
 }
 
+/**
+ * Page callback for adding listings.
+ */
 function drealty_listing_add_page() {
   $item = menu_get_item();
   if ($content = system_admin_menu_block($item)) {
@@ -134,6 +141,9 @@ function drealty_listing_add_page() {
   return $output;
 }
 
+/**
+ * Page callback form managing listings.
+ */
 function drealty_listing_admin($type = 'new') {
   $edit = $_POST;
   if (isset($edit['operation']) && ($edit['operation'] == 'delete') && isset($edit['listings']) && $edit['listings']) {
@@ -143,6 +153,9 @@ function drealty_listing_admin($type = 'new') {
   }
 }
 
+/**
+ * Form builder for the listing admin overview form.
+ */
 function drealty_listing_admin_overview($form, &$form_state, $arg) {
   $header = array(
     'id' => array('data' => t('Listing Id'), 'field' => 'id'),
@@ -191,10 +204,21 @@ function drealty_listing_admin_overview($form, &$form_state, $arg) {
   return $form;
 }
 
+/**
+ * Utility function to get the listing edit form.
+ *
+ * @param $op
+ *   The operation the form should perform.
+ * @param $listing
+ *  The listing to perform the operation on.
+ */
 function drealty_listing_form_wrapper($op, $listing) {
   return drupal_get_form('drealty_listing_edit_form', $op, $listing);
 }
 
+/**
+ * Form builder for the listing form.
+ */
 function drealty_listing_edit_form($form, &$form_state, $op, $listing) {
 
   $form_state['listing'] = $listing;
@@ -239,6 +263,9 @@ function drealty_listing_edit_form($form, &$form_state, $op, $listing) {
   return $form;
 }
 
+/**
+ * Submit handler for the listing form.
+ */
 function drealty_listing_edit_form_submit($form, &$form_state) {
   // grab the listing
   $listing = $form_state['listing'];
diff --git a/includes/drealty.listing.inc b/includes/drealty.listing.inc
index 0aec32b..ccee1db 100644
--- a/includes/drealty.listing.inc
+++ b/includes/drealty.listing.inc
@@ -1,10 +1,8 @@
 <?php
-
-// dRealty Listing Entity Class
-// ======================================================================================//
-// ======================================================================================//
-// ======================================================================================//
-
+/**
+ * @file
+ * dRealty listing entity classes.
+ */
 
 class DrealtyListing extends Entity {
 
@@ -222,4 +220,4 @@ class DrealtyListingTypeController extends EntityAPIControllerExportable {
     }
   }
 
-}
\ No newline at end of file
+}
diff --git a/includes/drealty.metadata.inc b/includes/drealty.metadata.inc
index 1ea432d..391afde 100644
--- a/includes/drealty.metadata.inc
+++ b/includes/drealty.metadata.inc
@@ -1,4 +1,8 @@
 <?php
+/**
+ * @file
+ * dRealty RETS metadata classes.
+ */
 
 class drealtyMetaData {
 
@@ -453,4 +457,4 @@ class drealtyResourceMapping {
   public $rid;
   public $entity_type;
 
-}
\ No newline at end of file
+}
diff --git a/modules/drealty_image/drealty_image.install b/modules/drealty_image/drealty_image.install
index e37a9e2..d5a77f0 100644
--- a/modules/drealty_image/drealty_image.install
+++ b/modules/drealty_image/drealty_image.install
@@ -1,4 +1,8 @@
 <?php
+/**
+ * @file
+ * Installation functions for the drealty image field.
+ */
 
 function drealty_image_field_schema($field) {
   $columns = array(
@@ -12,4 +16,4 @@ function drealty_image_field_schema($field) {
   );
 
   return array('columns' => $columns);
-}
\ No newline at end of file
+}
diff --git a/modules/drealty_image/drealty_image.module b/modules/drealty_image/drealty_image.module
index 380ffe5..642307c 100644
--- a/modules/drealty_image/drealty_image.module
+++ b/modules/drealty_image/drealty_image.module
@@ -1,5 +1,12 @@
 <?php
+/**
+ * @file
+ * Provides an image fied for hotlinking images from a RETS feed.
+ */
 
+/**
+ * Implements hook_field_info().
+ */
 function drealty_image_field_info() {
   $fields = array();
 
@@ -26,7 +33,7 @@ function drealty_image_is_empty($item, $field) {
 }
 
 /**
- *
+ * @todo Implement hook_field_instance_settings_form().
  */
 function drealty_image_instance_settings_form($field, $instance) {
   $settings = $instance['settings'];
@@ -57,10 +64,16 @@ function drealty_image_field_formatter_info() {
   );
 }
 
+/**
+ * @todo Implement hook_field_formatter_settings_summary().
+ */
 function drealty_image_formatter_settings_summary($field, $instance, $view_mode) {
   return '';
 }
 
+/**
+ * @todo Implement hook_field_formatter_view().
+ */
 function drealty_image_formatter_view($entity_type, $entity, $field, $instance, $langcode, $items, $display) {
   $element = array();
   $settings = $display['settings'];
@@ -71,6 +84,9 @@ function drealty_image_formatter_view($entity_type, $entity, $field, $instance,
   return $element;
 }
 
+/**
+ * @todo Implement hook_field_widget_info().
+ */
 function drealty_image_widget_info() {
   return array(
       'drealty_image_standard' => array(
@@ -81,8 +97,8 @@ function drealty_image_widget_info() {
 }
 
 /**
- * Implements hook_field_widget_form().
+ * @todo Implement hook_field_widget_form().
  */
 function drealty_image_widget_form(&$form, &$form_state, $field, $instance, $langcode, $items, $delta, $element) {
   return array('value' => $element);
-}
\ No newline at end of file
+}
diff --git a/modules/drealty_lead/drealty_lead.install b/modules/drealty_lead/drealty_lead.install
index 97c1089..2de5a36 100644
--- a/modules/drealty_lead/drealty_lead.install
+++ b/modules/drealty_lead/drealty_lead.install
@@ -1,9 +1,12 @@
 <?php
-
 /**
- * Implementation of hook_install()
+ * @file
+ * Installation functions for dRealty.
  */
 
+/**
+ * Implements hook_install().
+ */
 function drealty_lead_install() {
 	
 	if (!field_info_field('field_drealty_lead_name')) {
@@ -118,9 +121,8 @@ function drealty_lead_install() {
 }
 
 /**
- * Implementation of hook_uninstall()
+ * Implements hook_uninstall().
  */
-
 function drealty_lead_uninstall() {
 	$leads = db_select('drealty_lead', 'lead')
     ->fields('lead', array('id'))
@@ -137,9 +139,8 @@ function drealty_lead_uninstall() {
 }
 
 /**
- * Implementation of hook_schema()
+ * Implements hook_schema().
  */
-
 function drealty_lead_schema() {
 	$schema['drealty_lead'] = array(
 		'description' => 'Base table to store dRealty Leads.',
@@ -153,4 +154,4 @@ function drealty_lead_schema() {
 	);
 	
 	return $schema;
-}
\ No newline at end of file
+}
diff --git a/modules/drealty_lead/drealty_lead.module b/modules/drealty_lead/drealty_lead.module
index aa146bb..fdf58c8 100644
--- a/modules/drealty_lead/drealty_lead.module
+++ b/modules/drealty_lead/drealty_lead.module
@@ -1,7 +1,12 @@
 <?php
 
-/** File
- * 
+/**
+ * @file
+ * A lightweight leads system for drealty.
+ */
+
+/**
+ * Implements hook_entity_info().
  */
 function drealty_lead_entity_info() {
   $entities = array();
@@ -42,6 +47,9 @@ function drealty_lead_entity_info() {
   return $entities;
 }
 
+/**
+ * Implements hook_menu().
+ */
 function drealty_lead_menu() {
   $items = array();
   $items['admin/drealty/drealty_lead'] = array(
@@ -59,6 +67,9 @@ function drealty_lead_menu() {
   return $items;
 }
 
+/**
+ * @todo Do something awesome here!
+ */
 function drealty_lead_some_function() {
   return "something really cool";
 }
@@ -89,6 +100,9 @@ function drealty_lead_permission() {
   return $permissions;
 }
 
+/**
+ * Access callback for drealty lead entities.
+ */
 function drealty_lead_access($op, $listing = NULL, $account = NULL) {
   if (user_access('administer drealty leads', $account)) {
     return TRUE;
@@ -120,6 +134,9 @@ function drealty_lead_uri(DrealtyLead $lead) {
   return array('path' => 'drealty_lead/' . $lead->id);
 }
 
+/**
+ * Implements hook_load().
+ */
 function drealty_lead_load($id, $conditions = array(), $reset = FALSE) {
   $ids = (isset($id) ? array($id) : array());
   $entity = drealty_lead_load_multiple($ids, $conditions, $reset);
@@ -128,4 +145,4 @@ function drealty_lead_load($id, $conditions = array(), $reset = FALSE) {
 
 function drealty_lead_load_multiple($ids = array(), $conditions = array(), $reset = FALSE) {
   return entity_load('drealty_lead', $ids, $conditions, $reset);
-}
\ No newline at end of file
+}
diff --git a/modules/drealty_lead/includes/drealty_lead.lead.admin.inc b/modules/drealty_lead/includes/drealty_lead.lead.admin.inc
index 5f86a8d..0d60499 100644
--- a/modules/drealty_lead/includes/drealty_lead.lead.admin.inc
+++ b/modules/drealty_lead/includes/drealty_lead.lead.admin.inc
@@ -1,4 +1,8 @@
 <?php
+/**
+ * @file
+ * dRealty lead UI controller.
+ */
 
 class DrealtyLeadUIController extends EntityDefaultUIController {
 
@@ -241,4 +245,4 @@ function drealty_lead_view($entity, $view_mode = 'full', $langcode = NULL, $page
   $content = $controller->view(array($entity->id => $entity), $view_mode, $langcode, $page);
 
   return $content;
-}
\ No newline at end of file
+}
diff --git a/modules/drealty_lead/includes/drealty_lead.lead.inc b/modules/drealty_lead/includes/drealty_lead.lead.inc
index 2e0ae78..a304f18 100644
--- a/modules/drealty_lead/includes/drealty_lead.lead.inc
+++ b/modules/drealty_lead/includes/drealty_lead.lead.inc
@@ -1,4 +1,8 @@
 <?php
+/**
+ * @file
+ * dRealty lead entity.
+ */
 
 class DrealtyLead extends Entity {
 	
diff --git a/plugins/geocoder_handler/drealty.google.inc b/plugins/geocoder_handler/drealty.google.inc
index f4e4a65..7ea4a2d 100644
--- a/plugins/geocoder_handler/drealty.google.inc
+++ b/plugins/geocoder_handler/drealty.google.inc
@@ -1,11 +1,9 @@
 <?php
-
-// $Id$
-
 /**
  * @file
  * Plugin to provide a google geocoder.
  */
+
 /**
  * Plugins are described by creating a $plugin array which will be used
  * by the system that includes this file.
@@ -21,7 +19,7 @@ $plugin = array(
 );
 
 /**
- * Process Markup
+ * Process Markup.
  */
 function drealty_geocoder_google($address, $options = array()) {
   geophp_load();
diff --git a/plugins/geocoder_handler/drealty.yahoo.inc b/plugins/geocoder_handler/drealty.yahoo.inc
index 44ceb24..e68112a 100644
--- a/plugins/geocoder_handler/drealty.yahoo.inc
+++ b/plugins/geocoder_handler/drealty.yahoo.inc
@@ -1,11 +1,9 @@
 <?php
-
-// $Id$
-
 /**
  * @file
  * Plugin to provide a yahoo geocoder.
  */
+
 /**
  * Plugins are described by creating a $plugin array which will be used
  * by the system that includes this file.
@@ -20,7 +18,7 @@ $plugin = array(
 );
 
 /**
- * Process Markup
+ * Process Markup.
  */
 function drealty_geocoder_yahoo($address, $options = array()) {
   $geocoder_settings = variable_get("geocoder_settings", array());
