Added license information. Also fixed #1.