add examples in readme
fix bug with curl