Add separate way of updating the script, basic logging, more sophisticated
checking for git repository; replace in-script variables with named arguments