Added simple range checks to time values.
Added try-catch block to alarm parser.