Add index file. Minor bug fixed