cleaned up documentation and tests.