working system for bigrams without pos filtering, filter functions work but not integrated into main