Added documentation and added Doxygen comments that were missing