Created new subroutines for read_ndx
Revamped some of read_indicies