Typo: "residue" has to be "residual"
Correct typo in:
function names
documentation