added autocompleter

sorry pal, that piece of code was ugly. done