added more comments to the code