Basic Index writer and reader