the palace of st. james was divided into two main parts : the outer section , which consists of a courtyard and a garden , and the inner section , which is a large hall that serves as the home to the royal family .