changed fit function for FML (fmin instead of logLik)