Fixing `array.percents()` for optional custom `total`

Updating docs
Merge pull request #370 from avoidwork/edge

Fixing `array.percents()` for optional custom `total`