Added license and formatting