Bug fix on binEdges routine

Fixed a bug that was causing an overflow when the biggest bin edge was smaller than the maximum value of the signal.

Also fixed the indentation.