Improved saving of file. 
Added ability to save/retrieve metadata list to file.