Better Error Reporting

Displays file and line number when calling a critical error now.