adding new histograms + clean up
separation of processing the input from histogram filling; Adding the new histograms; cleanups