Added more data validation and exceptions, implemented functionality to append exceptions to error log file.