Editorial changes to Alarm specification

I merged some editorial changes from Marcos Caceres to:
- Use "EventHandler" instead of deprecated "Function?"
- Improve code examples
- Fix a few typos and make the language more consistent

There is no chance in behavior. Only the non-normative parts have been altered.