Began to KOify search. Event handling and newline bug remain