Tweaks to README.md API sample code.