Adding docs for reduce and reduce_with_index