Added function headers and comments for logical operations required by the board.