added comments to main methods