fixed quad cumul and importance sampling. in theory. awaiting feedback