added CL_SUCCESS checks for init_cl