Updated documentation and functional tests.