Annotated source, docs, tests, README.md and minor bugfixes.