Add tests, minor fixes, documentation, release prep.