Documentation and some tests.