Adding some comments for the display thread.
Adjusting the synchronization between the server and the clinet.