diff --git a/ref_debug.inc b/ref_debug.inc
index 01d2c56..33c9624 100644
--- a/ref_debug.inc
+++ b/ref_debug.inc
@@ -9,10 +9,9 @@
  */
 function ref_debug_load($type, $object, $name = NULL) {
   // If the debug is set to be displayed above output.
-  if (variable_get('ref_debug_admin_display') === 0) {
+  if (!variable_get('ref_debug_admin_display')) {
     $output = '<div class="ref-debug-object">';
     $output .= @r($object);
-    $previous_page = $_SERVER['HTTP_REFERER'];
     $output .= '<p class="ref-debug-object-info-content">';
     $output .= t('Hit x to fold/unfold, or click arrows.');
     $output .= '</p>';
diff --git a/ref_debug.info b/ref_debug.info
index a0e87d2..f4369d7 100644
--- a/ref_debug.info
+++ b/ref_debug.info
@@ -1,4 +1,4 @@
 name = REF debug
 description = Adding the PHP-ref debugger to Drupal.
 core = 7.x
-dependency[] = libraries;
+dependency[] = libraries
diff --git a/ref_debug.module b/ref_debug.module
index 461f2ca..44deef4 100644
--- a/ref_debug.module
+++ b/ref_debug.module
@@ -37,7 +37,7 @@ function ref_debug_short_circuit_version() {
  * Implements hook_boot().
  */
 function ref_debug_boot() {
-  // Nedd to get functions in common.inc to get libraries_get_path to work.
+  // Need to get functions in common.inc to get libraries_get_path to work.
   require_once DRUPAL_ROOT . '/includes/common.inc';
   // Need to load the user module to get permissions.
   drupal_get_filename('module', 'user', 'modules/user/user.module');
@@ -54,8 +54,7 @@ function ref_debug_boot() {
       }
     }
     else {
-      drupal_set_message('Libraries module is missing, it is needed to get PHP
-       ref to work', 'error');
+      drupal_set_message('Libraries module is missing, it is needed to get PHPb ref to work', 'error');
     }
   }
 }
@@ -80,7 +79,7 @@ function ref_debug_permission() {
  * Implements hook_menu().
  */
 function ref_debug_menu() {
-  $items['admin/config/ref'] = array(
+  $items['admin/config/development/ref'] = array(
     'title' => 'Ref debug',
     'description' => 'Settings for Ref debug.',
     'page callback' => 'drupal_get_form',
