Update README.md

Corrected variable name in sample code to make it run
Merge pull request #58 from noodles/master

Corrected sample code in README.md