Stats file created. Also for loopcreated to read all files in specified directory.
Function dict_print() created, which prints sorted dict to directory stats file. Function returns sum dict of both arguments.