refactored alarms:post_alarm, added examples for alarms and events methods