Client - sending and receiving messages as byte arrays
CLient - code clean up