changed autocomplete code to document specified code