Added more error-checking code to word freq.
Added more error-checking code to word freq.

cycomachead/info290,cycomachead/info290,cycomachead/info290,cycomachead/info290,cycomachead/info290,cycomachead/info290,cycomachead/info290,cycomachead/info290