Fix bug with CheckWellFormed

-Move from base.py to family.py for better organization

The function did not seem to be finding all the mistakes in the database.
I was using break statements when I wanted continue statements, so loops
were ending prematurely.