Maximum-likelihood estimator now functional. Need to display curve parameters next
clean up