added docs on collapsing and metavars, better collapse test