turn code templates (in doc) to files that can be added to.