More useful function for histograms than quick-hist: bin
Added a few terminal types, fixed structure a bit, fixed residuals
calling conention.