added a size parameter
added getPacket to PacketOutputStream and a test for the package