add callback for close and update readme