added creation of a log.txt file and a logger

Not used yet though, just at the beginning of main