Add some comments to key part of code.