Improve copy function (handle newlines)
Add pastebin function