Fixing a couple of API mistakes in the README

Thanks to @neilang and @thoughtadvances for the heads up on these problems.