Added an option to write a "raw" histogram