Added functionality to the Packet class. Using a ByteBuffer to store the data taken from the Stream