added rescue for invalid time exception, added display output logic
separated display logic, added exception handling code,used a single argument for add method[ add(*t)], made valid method private
added exception class for invalid time