Text this: Multi-agent based distributed control architecture for microgrid energy management and optimization