Adds prettyprinting for autocomplete results

* autocomplete function now only returns a list of words starting with the prefix
Changes the return value of autocomplete when no result found