Code cleanup + better deleteWord behavior when editing the commandbar text field + fix typo for #70