improve doc and fix bug with callbacks