cleanup and add generated code to doxygen