Update setXid

Update the `setreXid` scripts to take an argument.  See #93 for context.  This is a partial solution to the proposed features.