adds indexes to search engines. creates directory index. changes usage of File to Path instead. much nicer now