Initial main.c commit with skeleton functions