Updated to run through the analysis

Moved match variables list, dropping to before the initial tables are
created to get a consistent sample
Changed locals to globals for the matchvars and xvars_dr so don't have
to keep calling them up in each tab of the notetab code
Other minor editing to tables