Added more error reporting
Removed PRINT_DEBUG code and converted to report_error