addChip function
clean up code
update the module histogram, accept the totoal version of the histograms
add with bin dir