Optical solitons of (3 + 1) dimensional and coupled nonlinear Schrodinger equations