Updated the fetch method in the C++ interface and added doxygen comments to