diff --git a/node_load_img.admin.inc b/node_load_img.admin.inc
index 3e9a913..ed53f1f 100644
--- a/node_load_img.admin.inc
+++ b/node_load_img.admin.inc
@@ -9,74 +9,82 @@
  * Form builder function for the general Node load img configuration
  */
 function node_load_img_admin_settings() {
-    $types = node_type_get_types();
-    $styles = image_styles();
-    $form = array();
-    $styles_form= array();
-    foreach($styles as $style) {
-        $styles_form[$style['name']] = $style['label'];
-    }
-    
-    $hidden = array();
-    
-    foreach($types as $type) {
-        $hidden[$type->type] = array();
-        $form['node_load_img_' . $type->type] = array(
-            '#type' => 'fieldset',
-            '#title' => $type->name,
+  $types = node_type_get_types();
+  $styles = image_styles();
+  $form = array();
+  $styles_form = array();
+  foreach ($styles as $style) {
+    $styles_form[$style['name']] = $style['label'];
+  }
+
+  $hidden = array();
+
+  foreach ($types as $type) {
+    $hidden[$type->type] = array();
+    $form['node_load_img_' . $type->type] = array(
+      '#type' => 'fieldset',
+      '#title' => $type->name,
+    );
+    $fields = field_info_instances('node', $type->type);
+    foreach ($fields as $field) {
+      $field_info = field_info_field($field['field_name']);
+      if ($field_info['type'] === 'image') {
+        $hidden[$type->type][] = $field['field_name'];
+        $default = variable_get('node_load_img_' . $type->type, array());
+        $form['node_load_img_' . $type->type]['node_load_img_' . $type->type . '_' . $field['field_name']] = array(
+          '#title' => $field['label'],
+          '#type' => 'checkboxes',
+          '#options' => $styles_form,
+          '#default_value' => isset($default[$field['field_name']]) ? drupal_map_assoc($default[$field['field_name']], array()) : array(),
         );
-        $fields = field_info_instances('node', $type->type);
-        foreach($fields as $field) {
-            $field_info = field_info_field($field['field_name']);
-            if($field_info['type'] === 'image') {
-                $hidden[$type->type][] = $field['field_name'];
-                $default = variable_get('node_load_img_' . $type->type, array());
-                $form['node_load_img_' . $type->type]['node_load_img_' . $type->type . '_' . $field['field_name']] = array(
-                    '#title' => $field['label'],
-                    '#type' => 'checkboxes',
-                    '#options' => $styles_form,
-                    '#default_value' => isset($default[$field['field_name']]) ? drupal_map_assoc($default[$field['field_name']], array()) : array(),
-                );
-            }
-        }
+      }
     }
-    
-    // Unset types without any image field
-    foreach($hidden as $type => $fields) {
-        if(empty($fields)) {
-            unset($form['node_load_img_' . $type]);
-        }
+  }
+
+  // Unset types without any image field.
+  foreach ($hidden as $type => $fields) {
+    if (empty($fields)) {
+      unset($form['node_load_img_' . $type]);
     }
-    $form['types_and_fields'] = array(
-        '#type' => 'hidden',
-        '#value' => serialize($hidden)
-    );
-    
-    $form['submit'] = array(
-        '#type' => 'submit',
-        '#value' => t('Submit')
-    );
-    
-    return $form;
-    
-}
+  }
+  $form['types_and_fields'] = array(
+    '#type' => 'hidden',
+    '#value' => serialize($hidden)
+  );
+
+  $form['submit'] = array(
+    '#type' => 'submit',
+    '#value' => t('Submit')
+  );
+
+  return $form;
 
+}
 
+/**
+ * Form submit callback for the node_load_img_admin_settings form.
+ *
+ * @param $form
+ *   Form array.
+ * @param $form_state
+ *   Form state.
+ */
 function node_load_img_admin_settings_submit($form, &$form_state) {
-    $types = unserialize($form_state['values']['types_and_fields']);
-    variable_set('node_load_img', $types);
-    foreach($types as $type => $fields) {
-        if(!empty($fields)) {
-            $styles = array();
-            foreach($fields as $field)
-                if(isset($form_state['values']['node_load_img_' . $type . '_' . $field])) {
-                    foreach($form_state['values']['node_load_img_' . $type . '_' . $field] as $style) {
-                        if($style) {
-                            $styles[$field][] = $style;
-                        }
-                    }
-                }
-            variable_set('node_load_img_' . $type, $styles);
+  $types = unserialize($form_state['values']['types_and_fields']);
+  variable_set('node_load_img', $types);
+  foreach ($types as $type => $fields) {
+    if (!empty($fields)) {
+      $styles = array();
+      foreach ($fields as $field) {
+        if (isset($form_state['values']['node_load_img_' . $type . '_' . $field])) {
+          foreach ($form_state['values']['node_load_img_' . $type . '_' . $field] as $style) {
+            if ($style) {
+              $styles[$field][] = $style;
+            }
+          }
         }
+      }
+      variable_set('node_load_img_' . $type, $styles);
     }
+  }
 }
\ No newline at end of file
diff --git a/node_load_img.info b/node_load_img.info
index 604fa82..17f6bb9 100644
Binary files a/node_load_img.info and b/node_load_img.info differ
diff --git a/node_load_img.module b/node_load_img.module
index 5c403ba..c4fd7be 100644
--- a/node_load_img.module
+++ b/node_load_img.module
@@ -1,23 +1,28 @@
 <?php
+/**
+ * @file
+ * Adds a new array in your images fields,
+ * containing absolute URLs to styled image of this field.
+ */
 
 /**
- * Implements hook_menu
+ * Implements hook_menu().
  */
 function node_load_img_menu() {
-    $items = array();
-    
-    // main configuration page of the basic Node Load Img module
-    $items['admin/config/media/node_load_img'] = array(
-        'title' => 'Node Load Images configuration',
-        'description' => 'Administer for which fields on which content types styled images urls are added on node load.',
-        'file' => 'node_load_img.admin.inc',
-        'page callback' => 'drupal_get_form',
-        'page arguments' => array('node_load_img_admin_settings'),
-        'access arguments' => array('administer Node Load Img settings'),
-        'type' => MENU_NORMAL_ITEM,
-    );
-    
-    return $items;
+  $items = array();
+
+  // Main configuration page of the basic Node Load Img module.
+  $items['admin/config/media/node_load_img'] = array(
+    'title' => 'Node Load Images configuration',
+    'description' => 'Administer for which fields on which content types styled images urls are added on node load.',
+    'file' => 'node_load_img.admin.inc',
+    'page callback' => 'drupal_get_form',
+    'page arguments' => array('node_load_img_admin_settings'),
+    'access arguments' => array('administer Node Load Img settings'),
+    'type' => MENU_NORMAL_ITEM,
+  );
+
+  return $items;
 }
 
 /**
@@ -33,54 +38,56 @@ function node_load_img_permission() {
 
 
 /**
- * That function gives urls to images formatted with the $formats array directly in loaded $entities for image $fields fields.
- * 
+ * That function gives urls to images formatted with the $formats array
+ * directly in loaded $entities for image $fields fields.
+ *
  * Don't try to save entities returned by that function.
- * 
+ *
  * @param array $entities
  * @param array $fields
  * @param array $formats
+ *
  * @return array
  */
 function _node_load_img_preprocess_images($entities = array(), $fields = array(), $formats = array()) {
-    if(empty($entities) || empty($fields) || empty($formats))
-        return $entities;
-    
-    foreach($entities as $d => $e) {
-        foreach($fields as $field) {
-            if(isset($e->{$field}) && !empty($e->{$field})) {
-                $field_language = array_keys($e->{$field});
-                $field_language = $field_language[0];
-                if(!empty($e->{$field}[$field_language])) {
-                    foreach($e->{$field}[$field_language] as $d_img => $img) {
-                        foreach($formats as $format) {
-                            $e->{$field}[$field_language][$d_img]['img_urls'][$format] = image_style_url($format, $img['uri']);
-                        }
-                    }
-                }
+  if (empty($entities) || empty($fields) || empty($formats)) {
+    return $entities;
+  }
+
+  foreach ($entities as $d => $e) {
+    foreach ($fields as $field) {
+      if (isset($e->{$field}) && !empty($e->{$field})) {
+        $field_language = array_keys($e->{$field});
+        $field_language = $field_language[0];
+        if (!empty($e->{$field}[$field_language])) {
+          foreach ($e->{$field}[$field_language] as $d_img => $img) {
+            foreach ($formats as $format) {
+              $e->{$field}[$field_language][$d_img]['img_urls'][$format] = image_style_url($format, $img['uri']);
             }
+          }
         }
-        $entities[$d] = $e;
+      }
     }
-    return $entities;
+    $entities[$d] = $e;
+  }
+  return $entities;
 }
 
 /**
- * Implements hook_node_load.
+ * Implements hook_node_load().
+ *
  * For each entity, for each node, add image url in 'img_urls' array.
  * See config.
- * 
- * @param array $nodes
  */
 function node_load_img_node_load($nodes) {
-    $types = variable_get('node_load_img');
-    foreach($nodes as $d => $node) {
-        if(isset($types[$node->type]) && !empty($types[$node->type])) {
-            $fields = variable_get('node_load_img_' . $node->type);
-            foreach($fields as $field => $formats) {
-                $nodes[$d] = _node_load_img_preprocess_images(array($node), array($field), $formats);
-            }
-        }
+  $types = variable_get('node_load_img');
+  foreach ($nodes as $d => $node) {
+    if (isset($types[$node->type]) && !empty($types[$node->type])) {
+      $fields = variable_get('node_load_img_' . $node->type);
+      foreach ($fields as $field => $formats) {
+        $nodes[$d] = _node_load_img_preprocess_images(array($node), array($field), $formats);
+      }
     }
-    return $nodes;
+  }
+  return $nodes;
 }
\ No newline at end of file
