Worked on decoding

Fixed however no output from server messages.