Closed form Solutions to Some Nonlinear equations by a Generalized Cole-Hopf Transformation