check_problem function

Check .problem, .subprob and .method