fixed bug in pulse which skipped one letter
fixed bug in swap (double reversing)