made scripts more consistent, updated some scripts to use commandline args or fall back to environment variables when no args are present