Expanded documentation, added functional tests.
Renamed functional test -> documentation test.