added module for computing energies