Add Makefile.
Improve main.c