Added statistics to twolevel_model_building code.

Removed commented LSQ12 code.

Includes necessary change to resampleToCommon so that the code takes either an array or a comma delimited string, similar to setupBlurs in the stats module.