added much more error checking to ConsensusParser