YouTube Download Library debug and error checking

Removed all debug code, added error checking code