added more thread reporting to program and directed it to txt file