Updated README.md to have C++ syntax with examples.