rewriting local energy calculation

this also calculated nn_over for Distribution

take the sum of U and I...