diff --git a/media.install b/media.install
index 3f6712f..de5d2a7 100644
--- a/media.install
+++ b/media.install
@@ -202,7 +202,7 @@ function media_update_7002() {
   drupal_load('module', 'media');
   $old_types = variable_get('media_types');
   foreach ($old_types as $type) {
-    // Was an error in the original creation
+    // Was an error in the original creation.
     if (isset($type->callbacks)) {
       unset($type->callbacks);
     }
@@ -476,6 +476,8 @@ function media_update_7016() {
 }
 
 /**
+ * Move file display configuration.
+ *
  * Move file display configurations from the 'file_displays' variable to the
  * {file_display} table.
  */
@@ -497,7 +499,10 @@ function media_update_7018() {
 }
 
 /**
- * Update old per-view-mode media field formatters to the generic media formatter with a setting.
+ * Update old view mode formaters.
+ *
+ * Update old per-view-mode media field formatters to the generic media
+ * formatter with a setting.
  */
 function media_update_7019() {
   $instances = array();
@@ -566,7 +571,10 @@ function media_update_7200() {
 }
 
 /**
- * Enable the new Media Field module if this site uses "media" fields. File fields are now preferred for storing media.
+ * Handle existing media fields.
+ *
+ * Enable the new Media Field module if this site uses "media" fields. File
+ * fields are now preferred for storing media.
  */
 function media_update_7201() {
   $fields = field_info_fields();
@@ -578,7 +586,8 @@ function media_update_7201() {
 
       // Update entries in file_usage so that they are associated with Media
       // Field rather than Media.
-      // @TODO This update function may conflict with http://drupal.org/node/1268116
+      // @TODO This update function may conflict with
+      // http://drupal.org/node/1268116
       db_update('file_usage')
         ->condition('module', 'media')
         ->fields(array('module' => 'mediafield'))
@@ -813,15 +822,17 @@ function media_update_7206() {
 }
 
 /**
- * Empty update function to trigger cache clear
- * after changing access callbacks to file_entity_access.
+ * Trigger cache clear.
+ *
+ * Empty update function to trigger cache clear after changing access callbacks
+ * to file_entity_access.
  */
 function media_update_7207() {
   // Do nothing.
 }
 
 /**
- * Drop the media_types table and migrate all files to the new file_entity types.
+ * Drop the media_types table and migrate files to file_entity types.
  */
 function media_update_7208() {
   if (!db_table_exists('media_type')) {
@@ -885,7 +896,7 @@ function media_update_7208() {
     if (!$document_type) {
       return;
     }
-    foreach($mapping['mimetypes'] as $mimetype) {
+    foreach ($mapping['mimetypes'] as $mimetype) {
       $is_document = strpos($mimetype, 'document') !== FALSE || strpos($mimetype, 'application/vnd.ms-') !== FALSE;
       if ($is_document && !in_array($mimetype, $document_type->mimetypes)) {
         $document_type->mimetypes[] = $mimetype;
@@ -950,7 +961,7 @@ function media_update_7210() {
 }
 
 /**
- * Helper function for media_update_7204() to update display options within Views.
+ * Utility function for update 7204. Updates display options within Views.
  */
 function _media_update_7204_update_views_display_options(&$display_options, $view_mode_updates) {
   $updated = FALSE;
