Added function for resetting metadata to XML defaults.