Reorganised debug logging

-Made debug levels
-It is now configurable in the .cfg file
-Moved a lot of echo's to log methods