Minor.
Made processLine fork, seems to be working.  Made debug head and last functions, no save at program exit.
Minor stuff.
MVars added.
Okay seems to be working properly now, no blocking.