Clipboard

implemented the clipboard support. Removed a newline when removing
import packages. Tested on windows