added qgram & phonetic fingerprint functions
fixed tests