Added comments to parsePair