Added saving histogram code + hist figure