add tools, more modified about sync_interface.
change end line from \r\n to \n.