Added a parser

Added a parser to the StatCollector. Writing only the required fields
into the log file.