Some small changes

I added a new flag to autoselect the first result and I also added code and a gitignore to avoid creating and keeping temporary files.

I also updated some of the shell code while I was in there.