Added a licence.

Closes #1.