Updated TNE2 solver
Corrected errors in the calculation of the electronic energy