added threading code to enginelooprecorder
added more threading code.  Not compiling yet.