Cleanup and Framework of Electrical And Thermal Energy Systems