Update API.md

Minor typo fix. 

I've noticed more and more that the documentation is actually way behind the actual code. From some troubleshooting I understand the documentation corresponds to an earlier release but this has led to much frustration since the only available API documentation does not correspond to the code one actually gets. Is it possible to update the documentation? I'd be willing to help out in this process.