Use numpy's sum, min explicitly.

Some renames for clarity.

Typos in documentation.