add main.c to test stack and add makefile