Cleaned the code up a bit, added new debugger script