Documentation comments for Doxygen

Started documenting the code.