Clean up metadata.h and fix Doxygen markup.