1.optimized more initialization code 2.created new flag clearAlarms (in addition to exiting isEdit and checkAlarm) to signal alarm annhilations