Add pcap file header and small changes