Added a global try/catch, bug fixes

-try catch the whole bitch
-added some bug fixes