Management model of Nanogrid based Community Energy Storage