fixing backspace behavior broken by 0.2.5
Merge branch 'fix_backspace' into issue_7
refactored cmd handling (removed redundant state variable)