Add license file and some missing license headers