Implemented new Receive function

The new function uses a length prefix to receive a complete command for
every Receive() call