removed unused structs
Extracted isFile and isDir from index