Updated documentation and tests.