update README

Update same code using new API
Merge pull request #5 from remi-grumeau/v1.1

update README