check_data function

Checks data are correctly described for models