- fixed bug in defining the analytics summary
- revised the code for clearer separation between process and output [to
check]
- a bit of cleaning