Add Connection
Add main.go
gofmt changes
Use explicit reference and better error handling