improved result filtering and refactored tests
handle edge-case at end of sequence (plus test)
removed a piece of unused code
fixed the group_matches() function
fixed one test and two bugs in find_near_matches()

all tests passing!
minor bug fix in _expand() to avoid comparing int to None
fixed module import
bumped version and updated docs