added submodules; got index and reader in a working state