Remove duplicate assignments to $KCODE
Remove unnecessary commenting out