Autocomplete is functional

Rather slow though, will need to figure out how it can be sped up.