Updated code for New Tab button and double-click on tab bar to open new file, with config options.