Feature/debug tools

Added debugging tools.
I haven't used these before but I guess you know what they do