Modeling linear and nonlinear transmission in multi-mode fibers