A community microgrid architecture with an internal local market. (15th May 2019)