Added license to code
Added license headers to more code