Implementation of electron energy correction code, but we still off since we don't have the right numbers inside