Fix (slightly) dangerous template.
Add a license (about time).