added histogram plots (--type histogram). This closes #25.

Minor interface change: plot now takes 4 parameters, also submits the number of total plots.