Updated doxygen documentation for all functions