bug fix and minor enhancement

Make the del and yank function work