Improve comments and documentation.