Added more comments to ProcessMain