retuned parameters. Added automatic pickling of histograms