Fixed 'S' history and ctrl-c issues
Autocompletion cleanup