added main and Makefile