tab completion working
questions and cleanup
simplify on_tab - removed everything that didn't seem necessary