Changed save format and added nl at the end