simplify code; change text commands into window commands
improve :copy command
add tests for :copy command