Added inline documentation.
Removed old test code.