rearrange defuns, update copy/pase functions

* move some functions from d12-global to d12-defuns
* make copy/paste function more verbose
* copy line now copy line with '\n' (lol)