Udated examples in readme.md to match new syntax.

Readme examples doesn't work since you're exposing function instead of an object. 
I've updated examples in the readme :)