Add comments to the most important functions