wadindex.pl: renamed some variables to better match purpose