major modifications, updated ngram_score.py