Fix the example provided in README to compile and work.
Merge pull request #2 from kAworu/fix-usage-example-in-README.md

Fix the example provided in README to compile and run