fixing dumb bugs, adding cdf for inverted gamma rvs