fixed documentation to reflect new callback style