Changed behavior for cpl_err.to_ruby
Added histogramming