added a method to test read_files and redid how the init method works