Fix up some (rather serious) bugs with go
Remove debug prints from go