Add electin peak function w/ unit tests