setupPrelimDataChecks function

Do some preliminary checks on the data.