add docs to c++