methodCheck function

Check that the methods supplied by the user are valid caret methods