bug fixes
doxygen documentation added