polished some code files and updated doxygen documentation