added license and more documentation