More tests and documentation.