General bug-fixes and other changes to make particle pots work with the Helfand Energy correlation function