Update main.c

Added more comments.