The logic is added that outputs the dictionary properly to a file.

All that remains to be done is to add the algorithmic function to smooth
the probabilities