file listing and wordMap construction