Add licence file
Change header to use C string function