Added some comments. Overwrite log file at application start.