first working implementation for HistPainter. Mostly working stat-box update