Restored nnlf function and added _penalized_nnlf