Added some helper methods to the Packet class and updated the tests and docs to reflect that.