Some more test cases, utility functions, docs, etc. Commit before first pull request