Added license and fixed pkg dependencies