Removed unused code and comments
Handle insert for wide chars
Handle deleting wide chars in middle of input
Changed backspace when at end for wide chars