How to make them separate parts?

1) I am trying to separate a multi body part into two individual part files.

2) I want to somehow let the number of teeth I want to have, determine the cog diameter without me doing trigonometry on paper.

If you give me links to good videos, that would be great. Describing operations like this is usually relatively difficult.

Thank you.

SolidworksParts And Features