Syntax and better documentation

Add some whitespace
Use JSDoc @external
Simplified event names