Add more docs, tests.