Modify idol_create.sh to use functions.  Modify package-related generation scripts to allow execution.