main script and Makefile added