More work on integration, multithreading

Debugging now in place, runs the LCS infinitely