Backspace button added.
Code structure refactored.