Cosmology and dark matter