Text this: Integrated Energy Management System for Microgrids with Renewable Generation, Energy Storage and Controllable Loads