added
added license
made the code more standard (type is t)