Initial code for storing energy in hdf5
INFINIBAND - make it work correctly on old and new code.