Added comments and fixes to the logparser.