Added functions to find the text files in the resources dir, and validate the file format. Added file related unit test. Tested with uber jar, it worked. Refactored some classes.