Add documentation for selectRows method