Option to copy to clipboard, fixed issue #3 and minor changes