save on quit, better word counter, and backspace alters buf correctly