Use released 4.0 templates and fix include replacements

Closes #14