change readme according to the new api
fix examples