adding the d2r command

and gofmt everything