changes to plumed print files and stats calculations