Added documentation for retrieving results as scalar and map.