diff --git a/entity_print.api.php b/entity_print.api.php
index 79b784a..de8eb6a 100644
--- a/entity_print.api.php
+++ b/entity_print.api.php
@@ -2,9 +2,9 @@
 
 /**
  * @file
- * This file provides not working code and exists only to provide examples of
- * using the Entity Print API's.
+ * This file exists only to provide examples of using the Entity Print API's.
  *
+ * The code provided in this file does not work.
  * For further documentation see: https://www.drupal.org/node/2430561
  */
 
@@ -12,12 +12,13 @@
  * This hook is provided to allow modules to add their own CSS files.
  *
  * Note, you can also manage the CSS files from your theme.
- * @see https://www.drupal.org/node/2430561#from-your-theme
  *
  * @param string $entity_type
  *   The entity type of the entity we're rendering.
  * @param object $entity
  *   The entity we're rending.
+ *
+ * @see https://www.drupal.org/node/2430561#from-your-theme
  */
 function hook_entity_print_css($entity_type, $entity) {
   // An example of adding two stylesheets for any commerce_order entity.
@@ -38,7 +39,7 @@ function hook_entity_print_css($entity_type, $entity) {
  *   The pdf object.
  * @param string $entity_type
  *   The entity type of the entity we're rendering.
- * @param $entity
+ * @param array $entity
  *   The entity we're rending.
  */
 function hook_entity_print_pdf_alter(WkHtmlToPdf $pdf, $entity_type, $entity) {
diff --git a/entity_print.install b/entity_print.install
index 08ffcda..7b1ef19 100644
--- a/entity_print.install
+++ b/entity_print.install
@@ -15,13 +15,13 @@ function entity_print_update_7001() {
   $loaded_roles = array();
 
   // Load roles by name to get the rid and the role name.
-  foreach($roles as $role) {
+  foreach ($roles as $role) {
     $loaded_roles[] = user_role_load_by_name($role);
   }
 
   // Prepare permission array.
   $rid_permissions = array();
-  foreach($loaded_roles as $loaded_role) {
+  foreach ($loaded_roles as $loaded_role) {
     $rid_permissions[] = array(
       'rid' => $loaded_role->rid,
       'permissions' => user_role_permissions(array($loaded_role->rid => $loaded_role->name)),
@@ -29,9 +29,9 @@ function entity_print_update_7001() {
   }
 
   // Set / unset permissions.
-  foreach($rid_permissions as $rid_permission) {
+  foreach ($rid_permissions as $rid_permission) {
     $permissions = reset($rid_permission['permissions']);
-    if(array_key_exists('entity print access', $permissions)) {
+    if (array_key_exists('entity print access', $permissions)) {
       user_role_change_permissions($rid_permission['rid'], array(
         'entity print access' => FALSE,
         'bypass entity print access' => TRUE,
diff --git a/entity_print.module b/entity_print.module
index 74e68be..b34e8a6 100644
--- a/entity_print.module
+++ b/entity_print.module
@@ -10,7 +10,7 @@ define('ENTITY_PRINT_CSS_GROUP', 'entity_print');
 /**
  * Implements hook_entity_print().
  */
-function entity_print_menu()  {
+function entity_print_menu() {
   $items['entityprint/%/%'] = array(
     'title' => 'Print PDF',
     'page callback' => 'entity_print_entity_to_pdf',
@@ -105,7 +105,7 @@ function entity_print_entity_to_pdf($entity_type, $entity_id) {
       $entity = reset($entities);
       $html = _entity_print_get_generated_html($entity_type, $entity);
 
-      // Add a HTML file, a HTML string or a page from a URL
+      // Add a HTML file, a HTML string or a page from a URL.
       $pdf->addPage($html);
 
       // Allow other modules to alter the generated PDF object.
@@ -143,6 +143,7 @@ function entity_print_entity_debug($entity_type, $entity_id) {
  *   The entity type.
  * @param object $entity
  *   The entity we're rendering.
+ *
  * @return string
  *   The generate HTML.
  *
@@ -186,7 +187,7 @@ function _entity_print_get_generated_html($entity_type, $entity) {
  *   The entity type to add the css for.
  * @param object $entity
  *   The entity object.
- * @param $entity_info
+ * @param array $entity_info
  *   The entity info from entity_get_info().
  *
  * @return array
@@ -284,16 +285,16 @@ function entity_print_permission() {
 
   // Create a permission for every entity type and bundle.
   $entities = entity_get_info();
-  foreach($entities as $entity_key => $entity_info) {
+  foreach ($entities as $entity_key => $entity_info) {
     $permissions['entity print access type ' . $entity_key] = array(
       'title' => t('%entity_label: Use entity print for all bundles', array(
-        '%entity_label' => $entity_info['label'])
-      ),
+        '%entity_label' => $entity_info['label'],
+      )),
       'description' => t('Allow a user to use entity print to view the generated PDF for all %entity_label bundles.', array(
         '%entity_label' => $entity_info['label'],
       )),
     );
-    foreach($entity_info['bundles'] as $bundle_key => $entity_bundle) {
+    foreach ($entity_info['bundles'] as $bundle_key => $entity_bundle) {
       $permissions['entity print access bundle ' . $bundle_key] = array(
         'title' => t('%entity_label (%entity_bundle_label): Use entity print', array(
           '%entity_label' => $entity_info['label'],
diff --git a/modules/entity_print_views/entity_print_views.api.php b/modules/entity_print_views/entity_print_views.api.php
index cdadf36..e26df81 100644
--- a/modules/entity_print_views/entity_print_views.api.php
+++ b/modules/entity_print_views/entity_print_views.api.php
@@ -2,9 +2,9 @@
 
 /**
  * @file
- * This file provides not working code and exists only to provide examples of
- * using the Entity Print Views API's.
+ * This file provides examples of using the Entity Print Views API's.
  *
+ * The code provided in this file does not work.
  * For further documentation see: https://www.drupal.org/node/2430561
  */
 
@@ -12,10 +12,11 @@
  * This hook is provided to allow modules to add their own CSS files.
  *
  * Note, you can also manage the CSS files from your theme.
- * @see https://www.drupal.org/node/2430561#from-your-theme
  *
  * @param object $view
  *   The view object.
+ *
+ * @see https://www.drupal.org/node/2430561#from-your-theme
  */
 function hook_entity_print_views_css($view) {
   if ($view->name === 'some_view') {
diff --git a/modules/entity_print_views/includes/views/views_plugin_display_entity_print_views_pdf.inc b/modules/entity_print_views/includes/views/views_plugin_display_entity_print_views_pdf.inc
index 2fa182a..3f20efd 100644
--- a/modules/entity_print_views/includes/views/views_plugin_display_entity_print_views_pdf.inc
+++ b/modules/entity_print_views/includes/views/views_plugin_display_entity_print_views_pdf.inc
@@ -10,7 +10,7 @@ class views_plugin_display_entity_print_views_pdf extends views_plugin_display_p
   /**
    * {@inheritdoc}
    */
-  function execute() {
+  public function execute() {
 
     $library = libraries_load('phpwkhtmltopdf');
     if (!empty($library['loaded'])) {
diff --git a/tests/entity_print.test b/tests/entity_print.test
index 3a5fb21..40c580e 100644
--- a/tests/entity_print.test
+++ b/tests/entity_print.test
@@ -119,4 +119,5 @@ class EntityPrintTest extends DrupalWebTestCase {
     $this->drupalGet('entityprint/node/' . $this->node->nid . '/debug');
     $this->assertResponse(403, 'User with neither permission cannot view the PDF.');
   }
+
 }
