fix(function): throw error if undefined sum parameter
docs(readme): add description