Added foundation of PacketStream class (will revisit later)