Fix bug in addOut and support editing ckxx.
Support deleting kcxx.