Progress on the alarm system

added AlarmInstance class, AlarmCandidate class and Alarm manager class