added various QGrams tests for intersections & counts
docstring corrections
switched sim & dist functions to take actual function pointers
assorted pylint fixes