Cosmology code to calculate luminosity distance and other things