Update api.md

Reworking headings slightly.