Add average packet size

* Also, fix memory leak where the BPF structure was not freed
* Other minor cleanup (unused variables)