Yep, this is the fully hybrid electric path. Generators work much more efficiently when ran at a fixed RPM.
The batteries help the grid because they can maintain a minimum demand the power plants need and compensate for any excess demand that would tax the grid infrastructure.
I've never tested a generator, are they all producing pure sine waves?