A Comprehensive Study On Microgrid Technology