Modulation analysis and optical solitons of perturbed nonlinear Schrodinger equation