Improved plot_windowed_histogram doctoring, removed unnecessary imports and removed an internal testing line.