This adds StoreResults to the closeout script

I Agree @lucacopa, it will be better to return a dictionary and leave printing and formatting outside.