Adding comments to all the code used