As a result of the treaty of Guadalupe hidalgo the united states:
A. Outlawed slavery throughout its western territories
B. Officially took control of Texas from Mexico
C. Gained the right to control territory south of Rio Grande
D. Gained access to a small piece of territory to build railroads