1. Corrected error message when date exception is encountered
2. Changed logic not to create output file until presence of input is confirmed.