Updated documentation and unit test.