added autocomplete functionality

fixed issue #124