Update main.c

Most functions now have function descriptions.