main.c with major syntax errors fixed, still not functional