Fix a nasty bug involving the default choice in the completing read

This was being set to nil when no history was present; I added a failsafe
that will set it to the first candidate when no history is available. Also
fixed a few typos, docstrings, etc.