update readme and example to new api
v2.0.0