Code documentation updated and other stuff.

In this commit I removed debug junk and updated the Doxygen
comments in the code.