Accounted for out of range frequencies files and included ability to change size of input language by changing NUMBER_OF_CHARS