Added an error and exception debugger

A few minor fixes, along with an exception and error debugger