Add comments; initialize is_inside