Fixed a memory leak, fixed so threads can terminate when appropriate and clean up with join, fabulous print statements, things look to be working. next step is to do the matrix. hard to remember everything done 2.30am