Added doxygen comments to a few functions.