Added some scripts and changed Makefile