Updates some tests and improves the documentation.