Added comments to main()