alarm state machine implemented
added alarm handling
removed alarm handler from compile