clean up example code
add doxygen documentation