A few commits

Fix multiple warnings
Implement search history/autocomplete on search