Support multiple index files

(prepare for #7, #13)