Add doxygen-style comments to document all functions and all variables