Finished basic autocomplete code.

NOTE: Autocomplete now works.