Optimization of an All Normal Dispersion Fiber Laser and a Gain Managed Nonlinear Amplifier