Added license. And updated some comments