implements wait, runScript, and copyToClipboard methods. Adds comments
to