Added mapping of indices to variable name in district collection, tested more extensively.