Added more comments. took out c++ style comment. Changed btrace_set_print_fn to return fn ptr from prev call.