Updated readme.md

Updated code examples to meet library changes