Method to Save Histograms and Fixed Legend

Hi Christoph,

Here's the update for saving histograms. It also has the fix for the formatting the legends properly.

Best,
Brandon