Cleaned up. Allows adding of other files to index. File is not directory dependent now.