Added receive functionality to receive

it can receive the message, return the data to the client and
acknowledge that the data was sent (send an Ack to the server)