added comments to main code