begun writing C dll to compute loglik of model given parameters