Writing to Index Works

Main file test works