Config for Dirs and index files

Added a config Object for the Dir and the index file