remove msgwriter main method (used for testing)
gofmt