Add some comments on the code structure.