Complete debugging support

Finished adding debugging, time to add some more functions.