fix errors and start kshmt implementation
raducan grana, soille unconstrained and kshmt