More work on collapse test.
Fixed bug in reference order collapse
Made runs a parameter
Added assumption
New collect pse script