added doxygen comments.