checkReferenceFile function

Check a reference profiles file