Added Flushing to Log Files

Should have log files...