More comments and documentation.