Updated tests and in-code documentation.