Refactored the logic to display the summary at the end.
Refactored the logic to display the summary at the end.

As an example on the clearer organization of data,the logic to display
the summary at the end of the printed contend has been refactored to
make use of the info stored in the overall data structure.

claudio-unipv/pvcheck,claudio-unipv/pvcheck