Update api.md

Added single-quotes around event names, plus some slight text rewording.