Bug fix + adding CDF-likelihood function