Added missed alarm count to AlarmTracker, also fixed most of the alarm
bugs