fix doc formatting of onComplete callback; fixes #190