fix bugs;cut more getchar();fix function export