Wrote doxygen comments