Backspacing now works correctly
Cleaning up code and commenting