added Makefile and fixed shell scripts