Port to Go 1

First cut at changes to make it compile with Go 1.
Also, go fmt. Currently PHOLD does not run to completion
due to a deadlock