added Chat function, send message, some little fixes