Match code style, improve test coverage, break out test cases.
Remove unused code.
Merge pull request #15 from krakenjs/style

Match code style, improve test coverage, break out test cases.