Added timeout to ClipWait
Fixed insertion of selected text