Updated to new API.
Merge pull request #2 from neonichu/master

Fixed README