Thread.cpp completed; ready for debugging