working new autocomplete algorithm with classes/methods, fixes