persistent undo, minor cleanup and change in keybindings for switching buffers