Contains code cleanup and vertical histogram capability.
Looks ok. Remove the cout debug output and commit. Thanks!
All relevant changes are in master. Closing this revision.