More tests and documentation