loading metadata from xml
added header format file. must read in headers.