add comments to main.c