Set up directory and read files.