Small refactor
Moved the supporting files into /lib, this is kind of a nodejs lib convention.
Merge pull request #1 from Mindflash/smallRefactor

Small refactor + formatting updates