Complex sentence: The lower compartment adjoining the the fort was used as a godown, prison and a rest room for the soldiers, while the governor and priests resided in the upper level.
Split into simpler sentences: The lower compartment adjoining the the fort was used as a godown, prison and a rest room for the soldiers. The governor and priests resided in the upper level.