udpated index headers to be read from a dict

rather than repeated many times through-out the code