added autoindent and a way to toggle pasting