Updated comments and documentation.