Added documentation.
Tests.