added writeArchiveDataToFile - save log with data into .csv file