Template for the KSL scheme
The copy kls->ksl works now.
The real coding should start
This is a debugging commit