update example for API change
updated README for API change