Study on parameter optimization in a passively mode-locked Erbium-doped fiber laser