See Metadata description of stimuli for a general description on how to write a metadata description for stimuli. This is implemented by the OutData and OutList classes.