revised the update_params_LNF.m, specifically, learning of Phi