Added code with license and updated tutorial.