Cleanup and docs in c++ sources