doc: added missing example function, explanation on callbacks