diff --git a/README.md b/README.md
index b507fc8..7d89239 100644
--- a/README.md
+++ b/README.md
@@ -23,4 +23,4 @@ add to that as required.
 
 ## Views integration
 You can access the data in the login tracker tables either as a base view, or
-more usefully as a relationship against the user table.
\ No newline at end of file
+more usefully as a relationship against the user table.
diff --git a/login_tracker.api.php b/login_tracker.api.php
index 485f421..795dfdd 100644
--- a/login_tracker.api.php
+++ b/login_tracker.api.php
@@ -2,26 +2,27 @@
 
 /**
  * @file
- * Hooks provided by the Login Tracker module
+ * Hooks provided by the Login Tracker module.
  */
 
 /**
  * Override whether a login request should be tracked or not.
  *
- * @param $track_login
+ * @param boolean $track_login
  *   Boolean indicating whether to track the login (true), or not (false).
- * @param $edit
+ * @param array $edit
  *   The array of form values submitted by the user.
- * @param $account
+ * @param object $account
  *   The user object on which the operation was just performed.
  *
  * @see login_tracker_user_login()
  */
 function hook_login_tracker_track_login_alter(&$track_login, $edit, $account) {
-  // We only track login requests on the 1st of the month
+  // We only track login requests on the 1st of the month.
   if (date('d') != 1) {
     return FALSE;
-  } else {
+  }
+  else {
     return TRUE;
   }
 }
@@ -29,16 +30,16 @@ function hook_login_tracker_track_login_alter(&$track_login, $edit, $account) {
 /**
  * Supply, or modify custom data stored with the tracked login.
  *
- * @param $data
+ * @param array $data
  *   Associative array of custom data that will be stored with the login.
- * @param $edit
+ * @param array $edit
  *   The array of form values submitted by the user.
- * @param $account
+ * @param object $account
  *   The user object on which the operation was just performed.
  *
  * @see login_tracker_user_login()
  */
 function hook_login_tracker_login_data(&$data, $edit, $account) {
-  // Store a random number between 1 and 10 with the tracked login
-  $data['my-random-number'] = rand(1,10);
-}
\ No newline at end of file
+  // Store a random number between 1 and 10 with the tracked login.
+  $data['my-random-number'] = rand(1, 10);
+}
