Which months were added to the calendar and why?

In order for the Roman calendar year which was ten months long, to be in sync with the lunar year, the months of January and February were added.