more stuff on metadata syntax
substantial work on metadata format etc