enhancement: also pass elec if it's in the hdr
Merge pull request #11 from gpiantoni/addelec

enhancement: also pass elec if it's in the hdr