Added script and adjusted makefile