working on file reading functions and getting the logic together.
Implemented method to create list of indexes to definitions file randomly.