fix readme because of API changes

I hope you don't mind that I created a second pull request because I'm pretty new to git and I really messed the last one up when I tried to rebase two commits.