refactors helper into utils.
Merge pull request #13 from birkin/master

refactors helper into utils.