histograms: better help page formatting

* Adds link anchors, fixes code formatting, adds CSV example snippet.
  (closes #474) (PR #478)