Add output feature (lists & tuples auto-join), simplify code