refactor complete
fixed scrolling completedly.  newlines and backspace work perfectly now.