able to read index from file and print out. able to insert entries to global index