adjusted code to generate one big cvs file with data of all log-files