small bug fixes
significant bug fixes
doxygen documentation added