Added saving of formats

From object to array to allow for ordered duplicates