Updated comments and internal documentation.