Beginning of KCD and various minor fixed.