Added scaffold.
removed unused type.
Tweaks to publish metadata.