Added Debug class just to make it usable throughout the program. Also, trying to figure out how to make it non-blocking. Currently working on that.  See the section with 3 lines of comments.