Removed some unneeded functionality.
Added some tests, achieving 100% line coverage.
(Re)added types to readme code samples for github.