Added auto remove for log files, small fixes