Adds scratch buffer function, tab-mode, and fixes silver searcher.