Added saving of errorlog to errorLog.txt