finished TODO: implementation of enabledAlarmCount
fixed and completed automatic notifcation system