familycheck function

Error check for a family classification