lots of cleanup, added tests and the ability to get accounts
Merge pull request #5 from mcmakev/master

lots of cleanup, added tests and the ability to get accounts