fix dictionary word count call and filenames; specific error messages