add doxygen documentation for c++ code

this is adapting what stefano did for mcpele