Final version of alarm program in CLI mode with input bug fixed, as well as other improvements.