added comments in main.c