Added more tests, and made some design changes to make that easier. Also added more docs.
Increased the version number.