Refactor Search class and some more.
Fix use after free in MainWindow destructor.
Run dos2unix on all files.