Update example code in README

The old examples don't work due to changes to arguments