added percentiles as kwarg to get_hist