Doxygen comments for existing code

Finished commenting all of the existing code.