Finished index

Finished coding for index