Finished draft of new likelihood class.