apply license and add missing doc.go files