Fixed markdown issues in docs/api.md