updated tsmain.cpp comments and threadsock.h private attribute socket