fixed cpv tree editing, performance improvements, add colors and formatting to cpv graph