update sample code in README.md, it works now