Update docs, add tests.