updated vdiff for a more general case, added conds as an optional argument for the mintegrate ad dbl_mintegrate funcitons