Fix callback issue with bugpack. Update documenation.