Adding the core.inc file and preparing the new error_handling