Update README.md

Add better example with error handling.