initial version -- can compute the log likelihood correctly when all parameters are zero, but still seems buggy