fixed autocompletion bugs, added graceful closing, and fixed saving bug.  Also, working towards a system in which you can have the save occur only on exit.