Updating readme code examples for case on name and for a slight API change.