Fix bug in histogram
Add vertically oriented histogram
Refactor for legibility