Added alarm support, communication with the main frame, and some general
commenting