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.
Fix issue #16.
Merge pull request #18 from krakenjs/merge

Fix issue #16.
1.1.1