diff --git a/cod_mobile.install b/cod_mobile.install
index 71818b2..3a1b122 100644
--- a/cod_mobile.install
+++ b/cod_mobile.install
@@ -12,30 +12,28 @@ function cod_mobile_schema() {
   $schema['cod_json_versions'] = array(
     'description' => 'Stores version information about the json file',
     'fields' => array(
-      'vid'=> array(
+      'vid' => array(
         'type' => 'serial',
-        'unsigned' => true,
-        'not null' => true,
+        'unsigned' => True,
+        'not null' => True,
       ),
       'version' => array(
         'type' => 'int',
-        'unsigned' => true,
-        'not null' => true,
+        'unsigned' => True,
+        'not null' => True,
       ),
       'revision_count' => array(
         'type' => 'int',
-        'unsigned' => true,
-        'not null' => true,
+        'unsigned' => True,
+        'not null' => True,
       ),
       'fid' => array(
         'type' => 'int',
-        'unsigned' => true,
-        'not null' => true,
+        'unsigned' => True,
+        'not null' => True,
       ),
     ),
     'primary key' => array('vid'),
   );
   return $schema;
 }
-
-?>
diff --git a/cod_mobile.module b/cod_mobile.module
index c9c32b7..36a7ff1 100644
--- a/cod_mobile.module
+++ b/cod_mobile.module
@@ -29,9 +29,9 @@ function cod_mobile_menu() {
 }
 
 /**
- * Implemens hook_cron.
+ * Implements hook_cron.
  */
-function cod_mobile_cron () {
+function cod_mobile_cron() {
   $node_revions_count = _cod_get_node_revision_count();
   $json_revision_count = _cod_get_json_revision_count();
   if ($node_revions_count != $json_revision_count) {
@@ -237,7 +237,7 @@ function _cod_mobile_extract_ses_speakers($sessions) {
 }
 
 /**
- * Extract track data from session entity result
+ * Extract track data from session entity result.
  */
 function _cod_mobile_extract_tracks($sessions) {
   $tracks = array();
@@ -252,7 +252,7 @@ function _cod_mobile_extract_tracks($sessions) {
 }
 
 /**
- * Extract room data from session entity result
+ * Extract room data from session entity result.
  */
 function _cod_mobile_extract_rooms($sessions) {
   $rooms = array();
@@ -271,24 +271,24 @@ function _cod_mobile_extract_rooms($sessions) {
  */
 function _cod_mobile_make_clean_array($array) {
   $cln_array = array();
-  foreach( $array as $value) {
+  foreach ($array as $value) {
     $cln_array[] = $value; 
   }
   return $cln_array;
 }
 
 /**
- * Update the json version in cod_json_versions table
+ * Update the json version in cod_json_versions table.
  */
 function _cod_update_version($fid) {
   $node_revions_count = _cod_get_node_revision_count();
   db_query(
-    "INSERT INTO cod_json_versions
+    "INSERT INTO {cod_json_versions}
       (vid, version, revision_count, fid)
     VALUES
       (1, :version, :revision_count, :fid)
     ON DUPLICATE KEY UPDATE
-      version     = version + 1,
+      version = version + 1,
       revision_count = VALUES(revision_count),
       fid = VALUES(fid)", 
     array(
@@ -300,7 +300,7 @@ function _cod_update_version($fid) {
 }
 
 /**
- * Get version count from node_revision table
+ * Get version count from node_revision table.
  */
 function _cod_get_node_revision_count() {
   $query = db_select('node_revision', 'r')
diff --git a/includes/cod_mobile.page.inc b/includes/cod_mobile.page.inc
index f1e4a46..9371253 100644
--- a/includes/cod_mobile.page.inc
+++ b/includes/cod_mobile.page.inc
@@ -1,11 +1,11 @@
 <?php
 /**
  * @file
- * Contains page call back of menu defined in cod_custom.module
+ * Contains page call back of menu defined in cod_custom.module.
  */
 
 /**
- * callback function of menu generate-json.
+ * Callback function of menu generate-json.
  */
 function cod_custom_json_output() {
   _cod_mobile_generate_json_file();
@@ -13,9 +13,9 @@ function cod_custom_json_output() {
 }
 
 /**
- * callback function of menu json-version.
+ * Callback function of menu json-version.
  */
-function cod_custom_json_version () {
+function cod_custom_json_version() {
  $json_version = _cod_mobile_get_json_version(); 
  $json = array('version' => $json_version);
  drupal_json_output($json);
