Text this: Application of linear and nonlinear control schemes for the stability of smart grid