SGS EMS comprehensive control algorithm and BEMS development demonstration