Evolution of the atmosphere
1. Atmosphere is mostly CO2
2. Intense volcanic activity releases nitrogen, water vapour and small amounts of methane and ammonia
3. Water vapour cooled and condensed to form oceans
4. CO2 dissolved into the oceans forming carbonate precipitates (would lead to formation of sedimentary rocks and fossil fuels)
5. Plants and algae evolved which absorbed CO2 for photosynthesis and related O2
6. Atmosphere is 80% N2 and 20% O2