Added front-end and binary I/O for histograms