Vastly improved debugging and error output format, tested the current main file