Added some error handling and some more cleanup
Added opy to clipboard and delete capabilites