Minor fixes to runcharts. Started adding code for problem KPIs (not used yet)