Coding style and refactoring

Signed-off-by: Steven Hoffman <git@fustrate.com>