Markdown fixes in api.md