BUGFIXES: add missing variables

only worked before because thing were run in __main__ of the same script
sample_T: define num_rows
forward_sample_from_prior: pass inf_seed as argument
enable generation of diagnostics funcs for a column given X_L; demonstrate its use in comments