Updated program to allow different locations for dictionary and input files.