Update README.md

Fixed the example to reflect the signatures of the actual methods.