Added comments and documentation.