Updated README and examples according to API changes.