Rewritten the read_data function and method in the main class.
Now get_file_by_extension is called only once, when the data is read. Changes in other files result mostly of required adjustments. Apart from this. Now read_data method can accept key-word arguments, so using a dictionary to create main class is not mandatory anymore.