Adds doc for getTotal
Merge pull request #18 from tomsteele/getTotal-doc

Add docs for getTotal