added the function to read sentences
fixed the ngram variable, commented part 1 code in main