Fixed bugs & client for sending messages