Added bool to control access to LoopWriter.
Major reorganization of control.  Still some issues with getting the event loop functioning correctly.  Not fully implemented yet.