changed confidence distribution and visual fixes
fix bugs