Cleanup

- Add attribution comments
- Use lang.replace compatible template strings