log files saving correctly, minor fixes