Minor changes to corpus.create

The setting of attribs.labels still needs work, the code is poorly
written.