Add some doc comments and improve existing ones.