Modified the makefile and added a script for easier use