Add docstring to copyToClipBoard
Correct some PEP8 errors