Code documentation.
Updated tests.