Fixed the thread signalling, and tested it. Fixed a bug that did not shut down the Comedi driver properly before exiting ... and much much more