Added function to test thread in use
Removed some debug output from Thread.cpp