Added histogram plot to bin routine