Refactor - name total variable to match docs

Clearer to follow too.
Update total names