Update main.c

Added in main pseudocode from design.