add init main.c and Makefile