More meaningful error messages in case of faulty kappa file
Tidy up import statements