Code with the histogram plot and basic filtering of data.
iter solver: average and std deviation of bckgrnd
reordered iterative routine to make more sense