Wrote log alarms, show alarms; reformatted