add doxygen comments
fix error print