The moon has phases because of where the sun shines on it. Only yhe part wiyh light of the moon is visible. As the moon moves, the sun light hits is at different angles and creates the different shapes we call phases.
The correct formulae is CCl4
The gravity from the moon and some from the sun brings the tides up, because the moon's gravitational force is strong enough to pull some water up.