Commenting and fixed small issues in NetClient and thread