Updates README examples to new function syntax