completed packet.h documentation