some changes to helper, fixed log parsing in restore.c, fixed list.h