added some helpers to made the code more readable, i'm sure there's still some things that can be done.
Merge pull request #10 from jho406/prettier

added some helpers to made the code more readable, i'm sure there's stil...