Wrote code to open bip header and separated do_headers() from segment.c