Function dict_print() created, which writes sorted dict to directory stats file. Function takes file dict and directory dict for words or symbols as arguments. Function returns sum dict of both arguments (by values) to calculate overall directory statistics.