Adding comments to all logic