Same, rewritten
Making it divide by elements just in case
Enabled debugging line
Renamed variables for E_e:IE_0:E_e calculation
Places to check for future debugging