persistent undo, format json, minor cleanup and change in keybindings for switching buffer