change interface to specify root and/or tree.  copy sequences (for now).  fix inversion test bug