* Refactored and added code for parsing and saving metadata