refactoring code, now handles a range of ngrams on the same file read to make things more efficient.

Should probably just make a class for the corpus and methods for each of the functions I have written.... maybe next commit