add parser.py for the output data; revised recording process