fixed a bug in initfromcopy
all isinstance(t, list) to isinstance(t, Sequence)
added an outfile to the cli