fix bugs in list.[ch], time.[ch] and add an asynchronous timer.