checkDataObject function

Check for errors in objects used for analysis