Text this: Development of algorithms and software for studying the stability of complex power systems