Discrete bar chart/refactoring

added missed public methods, comments, small changes