Modified how debug, critical and error information is printed to the console.
Added the file and message data structure.
Some debugging information added.
Clean up some files.
Better looking debug messages.