Added some comments to the setup function