Increased the maxiteration default parameter and added a loglikelihood
function.