Complete port of Electron histograms

Change example to use electron histograms and run over
more than one dataset (for testing).