Added license and fixed recieving JSON as data