working on save packet on datafile

Signed-off-by: Claudio Bisegni <Claudio.Bisegni@lnf.infn.it>
first version of the scanner working, but it is very buggy... need to be finished.

Signed-off-by: Claudio Bisegni <Claudio.Bisegni@lnf.infn.it>