added function get_debug_info and reflected changes in the README