Fixed trailing comma problems in multiple file printing