Added output names option to tar function