Some documentation work and tests.