small changes that could lead to errors
doxygen documentation added