added c_error_manager class
the c_error_manager print all erros happened during init or run time at the end
added checks errors during init