Fixed coder violations and a bad drupal set message call.