added comments to main.cs