modified test list
Improved argswap script

* enabled application of modified list in current line
* added correct placement of cursor after swapping
* refactored code