added output file writing in form required
changed the parsing of packets to a config file driven form