Added a parser for tracefiles and moved it to main.