fixed print ngrams and added arg to lookup