Add license, fix #1