Added license and minor changes