added elif to handle duplicates in findmatch, current tests work, begining new tests