updated more of the module to comply with drupal coding standards