Started adding comments to the code