Added methods to add and receive packets easier. Added a printPacket method for debugging.