Work on chat system

basic structure of a chat system much work to be done