Added capability to pass in packet capture number, freed some memory fro...

...m creating a list, and added lots of documentation.