Adding c++ docs and python tests.