applying license headers and adding notice