Update main.c

Added all function calls to main.c