Adding some doxygen comments to the C++ api.