updated histogram code to output on same scale, as percent obs per bin