Original: During the American occupation, the buildings and the whole premises served as military headquarters for the 31st Infantry of the United States Army until 1941.
Simplified: The buildings and the whole premises served as military headquarters for the 31st Infantry of the United States Army until 1941.