update LogReader with index and add Tcp_code
fixed bugs