Added code coverage and documentation.