p8/main.go: Added comments and refactored.