Simplified write to file
Command list queue and updated splitArgs to reflect assignment