Added ability to specify different bins for the frequency table and histogram.