Add explanatory comments to code