Add copy to clipboard feature

Also fix some semicolon issues