Added license information and properly formatted comments