How CIM helped an industry rocked by scandal get back on the level