added code to print contents of packet header