added alarmStatus
removed alarmStatus varible, reconfigured logic, initial tests ok, formatted printouts