small typo fix in API.md

Typo fix.. the text said "where `item` is the resolved value", but the example signature didn't have "item". Also added a description of `total`.
Merge pull request #384 from andyfischer/master

Small fix in API.md in the description for "reduce"