alarm done

next is to normalize the alarm data structure