Update README and example for new API