modified the scripts for a parameter passing main, and changed the
scripts to directly write produced fiels instead of piping stdout to a
file