Made errors now print to a log file LogFile.log