Some work on the residues chapter