Added docstring to payne.
Renamed some vars to r and s.