* Update to pass an object rather than parameters as options. * Update demo and readme to reflect this change. * TODO: allow passing unnamed functions via object