Histogram refactoring
Prefer gboolean
Merge pull request #511 from LebedevRI/histogram-refactoring

Histogram refactoring