implemented logging, gofmt