tweaks and comments to histogram