The cooling of compact stars