added license and comments