Seamless Operation Of A Microgrid Using Bess