Add main.go and fix directory layout.