Fixing bug (I think) in Electric.correlation where we did not
cummulate on each loop iteration.  And PEP8 formatting tweaks and
reducing redundancy in Electric.correlate.  Request for review from
@nipunreddevil please ;)