Replaced prefix summing with Phil's version

Now uses sum() instead of mvars and a loop
spacing
Consistent white-space (no tabs/trailing)
Move output format to a single place and give Peer and Duration a little more room