added IndexReaderProperty struct, moved index routines to index.c