Inelastic neutron scattering studies of YFeO3