Update README.
Update examples to use the new API.