Improves and cleans log files