consistent function args (fixes #31)
Changelog for PR #114.