Wertheim perturbation theory: thermodynamics and structure of patchy colloids