Added error_reporting
Added error_reporting and other little changes