I sorted out atmospheres. There's a good variety now. You get some planets with large concentrations of certain gases and nearly none of the others, or planets with a large variety of all of the gases. I also fixed the bug causing every single planet to have an atmosphere consisting of 100% CO2. However, an extremely curious bug, on fairly rare occasion you can get a planet with 0 mass. I still have no idea what's causing that. :P