pong: code comments and documentation