updated code

added 75% of getting an egg + badluck.txt file. Should fully work and
detect everytime that a device has been removed and will continue the
loop even if a usb device fails to mount instead of exiting the script.