fixing examples on readme accordingly to the new api