Update README.md

Errors in sample code fixed.