changed some AIOOG (not tested)
run.sh should be paramteric and replaced by a Makefile.