updated ChatClient with two threads; All basic functions are working now.