Initialization for chatting.
chatting completed, but slow. code should be refactored.
Taken and merged update from repository.
Again taken and merged with Faisal vai's commit.