Fixed cursor bug and backspace bug. Started working on tab auto-complete.