add log.txt to record decoding process and describe process in detail