Reading incoming data now working

Fixed decoding message
Updated outgoing message type to text
Send is still not working (encoding problem?)