fix some golint warnings in main.go
basic support for chan msgs