Added license headers and fixed license