added stuff to print outgoing packets in readable form;