Understanding Demand-side Management In Microgrid Systems