Update api.md

Minor typo fixes