added license

added license and fixed encoding