Updates README examples to new function syntax
Merge pull request #24 from zamith/master

Updates README examples to new function syntax