Energetics and Composition in the Thermosphere