Setting up file structure and index file