Added capability to pass in packet capture number, freed some memory from creating a list, and added lots of documentation.