Updated unit tests.
updated documentation.