Equi Energy Sampling Rewritten to Create Generic Interface