remove unused local variable
remove unnecessary module scopes
flip negative conditionals
use 1.9 hash syntax (buhbye hashrockets!)
Merge pull request #7 from teeparham/refactor

Refactoring