first working version (probably) of automatic bash script
minor fix to autorun.sh