add makefile and main script