added vars, small changes to family.php