Fix mutual exclusions, first working version.  Add rolling file logs