Added license info and some comments