Add license info, fixes #35.
Sync with upstream