fixed getcomplemented families

fixed getxd to remove redundancies and fixed getcomplemented families
by not adding empty families