PG-PuReMD: adjust performance logging to compute mean timings across all processors. Other code clean-up.