Energy systems and management