Interpreting attacks in the Bestiaries I'm having trouble with all of the natural attacks in the Bestiary.

Does '2 claws +2 (1d4)' mean it makes two claw attacks, or are both claws factored into the attack?

If multiple attacks are listed, such as 'bite +18 and tail slap +13' or '2 claws +12, bite +12, or longspear +12/+7, bite +7', how do I interpret it? Which attacks are choices and which attacks are in combination with the other attacks? Thanks in advance.