p3/main.go: Added comments and smaller code changes.